Spawners work underwater

This commit is contained in:
NPXcoot 2016-02-24 12:19:56 +01:00
parent 13edaad10d
commit 8599e32a4e

View File

@ -273,7 +273,7 @@ function nssb_register_eggs (name, descr, int, wide, troppi, neigh)
action = function(pos, node, active_object_count, active_object_count_wider)
local pos1 = {x=pos.x+math.random(-wide,wide), y=pos.y+0.5, z=pos.z+math.random(-wide,wide)}
local n = minetest.env:get_node(pos1).name
if n ~= "air" then
if n ~= "air" and n ~= "default:water_source" then
return
end
local count = 0