Avoid "access to undeclared globals" warning

This commit is contained in:
bell07 2018-01-19 22:43:43 +01:00 committed by GitHub
parent 05cdbec45c
commit c68a154c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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