ball spawn tweak

This commit is contained in:
rnd 2018-06-23 08:42:37 +02:00
parent 64cc905048
commit eecdc8b608

View File

@ -223,6 +223,7 @@ minetest.register_entity("basic_machines:ball",{
end end
local effector = table.mesecons.effector; local effector = table.mesecons.effector;
local count = ballcount[self.owner] or 1; count=count-1; ballcount[self.owner] = count;
self.object:remove(); self.object:remove();
if energy>0 then if energy>0 then
@ -400,7 +401,7 @@ minetest.register_node("basic_machines:ball_spawner", {
if not count or count<0 then count = 0 end if not count or count<0 then count = 0 end
if count>=2 then if count>=2 then
if t1-t0>20 then count = 0 if t1-t0>10 then count = 0
else return else return
end end
end end