Merge pull request #5 from bell07/patch-1
Avoid "access to undeclared globals" warning
This commit is contained in:
commit
07eb35dfa9
2
init.lua
2
init.lua
@ -169,7 +169,7 @@ minetest.register_node("backpacks:backpack_leather", {
|
||||
allow_metadata_inventory_put = backpacks.allow_metadata_inventory_put,
|
||||
})
|
||||
|
||||
if mobs and ( mobs.redo or mobs.mod == 'redo') then
|
||||
if minetest.global_exists("mobs") and ( mobs.redo or mobs.mod == 'redo') then
|
||||
minetest.register_craft({
|
||||
output = "backpacks:backpack_leather",
|
||||
recipe = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user