Stupid fucking shit.

master
James Stevenson 2019-01-21 05:27:00 -05:00
parent 08310b4296
commit fe218059fa
2 changed files with 3 additions and 6 deletions

View File

@ -55,7 +55,8 @@ minetest.register_node("mobs:spawner", {
if node and node.name then
local node_below = minetest.registered_nodes[node.name]
if node_below and not node_below.walkable then
return redo(pos)
erase(pos)
return
end
end

View File

@ -64,8 +64,6 @@ minetest.register_on_mods_loaded(function()
end)
mobs.redo = function(pos, radius)
print("Redoing.")
radius = radius or 1
local p1 = {
@ -84,8 +82,7 @@ mobs.redo = function(pos, radius)
if n then
local t = minetest.get_node_timer(n)
if not t:is_started() then
print("Restarting timer.")
t:start(10)
t:start(0)
end
end
@ -97,7 +94,6 @@ mobs.redo = function(pos, radius)
y = an.y + 1,
z = an.z,
}
print("Setting spawner.")
minetest.set_node(np, {name = "mobs:spawner"})
end
end