1
0
mirror of https://github.com/Splizard/minetest-mod-snow.git synced 2024-12-29 16:00:16 +01:00

Remove snowfall entities if they get stuck for more then 2mins.

This commit is contained in:
Splizard 2012-12-18 15:19:42 +13:00
parent 040e8d2354
commit 2cc269f544

View File

@ -435,6 +435,10 @@ if snow.enable_snowfall then
self.object:remove() self.object:remove()
end end
if self.timer > 120 then
self.object:remove()
end
self.lastpos={x=pos.x, y=pos.y, z=pos.z} -- Set lastpos-->Node will be added at last pos outside the node self.lastpos={x=pos.x, y=pos.y, z=pos.z} -- Set lastpos-->Node will be added at last pos outside the node
end end