Skip to content

Commit

Permalink
use local variable (since we already have it)
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS committed Jul 21, 2024
1 parent 6eddf9e commit d509127
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crafts.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
local r = replacer
local rm = r.materials

if not replacer.hide_recipe_basic then
if not r.hide_recipe_basic then
minetest.register_craft({
output = replacer.tool_name_basic,
output = r.tool_name_basic,
recipe = {
{ rm.chest, '', rm.gold_ingot },
{ '', rm.mese_crystal_fragment, '' },
Expand All @@ -14,21 +14,21 @@ end


-- only if technic mod is installed
if replacer.has_technic_mod then
if not replacer.hide_recipe_technic_upgrade then
if r.has_technic_mod then
if not r.hide_recipe_technic_upgrade then
minetest.register_craft({
output = replacer.tool_name_technic,
output = r.tool_name_technic,
recipe = {
{ replacer.tool_name_basic, 'technic:green_energy_crystal', '' },
{ r.tool_name_basic, 'technic:green_energy_crystal', '' },
{ '', '', '' },
{ '', '', '' },
}
})
end
if not replacer.hide_recipe_technic_direct then
if not r.hide_recipe_technic_direct then
-- direct upgrade craft
minetest.register_craft({
output = replacer.tool_name_technic,
output = r.tool_name_technic,
recipe = {
{ rm.chest, 'technic:green_energy_crystal', rm.gold_ingot },
{ '', rm.mese_crystal_fragment, '' },
Expand Down

0 comments on commit d509127

Please sign in to comment.