Avoid "access to undeclared globals" warning

master
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
1 changed files with 1 additions and 1 deletions

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