Merge pull request #5 from bell07/patch-1

Avoid "access to undeclared globals" warning
This commit is contained in:
Tai Kedzierski 2018-05-10 15:11:18 +01:00 committed by GitHub
commit 07eb35dfa9
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 = {