Prevent warning for accessing missing global (#11)
This commit is contained in:
parent
0724b0dda9
commit
40b911e184
|
@ -19,7 +19,7 @@ if minetest.get_modpath("default") then
|
|||
},
|
||||
})
|
||||
end
|
||||
if farming and farming.mod == "redo" then
|
||||
if minetest.global_exists("farming") and farming.mod == "redo" then
|
||||
minetest.register_craft({
|
||||
output = "home_vending_machines:sweet_machine",
|
||||
recipe = {
|
||||
|
@ -29,4 +29,4 @@ if minetest.get_modpath("default") then
|
|||
},
|
||||
})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue