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
|
end
|
||||||
if farming and farming.mod == "redo" then
|
if minetest.global_exists("farming") and farming.mod == "redo" then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "home_vending_machines:sweet_machine",
|
output = "home_vending_machines:sweet_machine",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
|
Loading…
Reference in New Issue