Add partial backwards-compability

This commit is contained in:
Wuzzy
2016-11-10 16:48:52 +01:00
parent 281eae639e
commit 7568a2b3fa
3 changed files with 21 additions and 2 deletions

View File

@ -375,7 +375,9 @@ if not minetest.setting_getbool("only_peaceful_mobs") then
if obj:is_player() then
player_near = true
else
if obj:get_luaentity().mob_name == "mummy" then mobs = mobs + 1 end
if obj:get_luaentity() and obj:get_luaentity().mob_name == "mummy" then
mobs = mobs + 1
end
end
end
if player_near then