mirror of
http://repo.or.cz/minetest_pyramids/tsm_pyramids.git
synced 2025-07-04 00:51:14 +02:00
Add partial backwards-compability
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user