Bugfix in spawning

master
PilzAdam 2012-09-17 17:10:27 +02:00
parent 73c52cc2ad
commit aec1777c87
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ function mobs:register_spawn(name, nodes, max_light)
for _,obj in pairs(minetest.env:get_objects_inside_radius(pos, 50)) do
if obj:is_player() then
return
elseif obj:get_luaentity().name == "__builtin:item" then
elseif obj:get_luaentity().name == name then
count = count+1
end
end