1 Commits

Author SHA1 Message Date
40b911e184 Prevent warning for accessing missing global (#11) 2022-07-26 22:53:26 -04:00

View File

@ -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