Ensure flowing items don't affect collection animation

This commit is contained in:
wallabra 2022-02-17 21:15:46 -03:00
parent 09854a9af4
commit 0af898fc6e
Signed by untrusted user: Gustavo6046
GPG Key ID: 5182FABAA5E139B3
1 changed files with 4 additions and 0 deletions

View File

@ -153,6 +153,10 @@ minetest.register_globalstep(function(dtime)
object:set_velocity({x=0,y=0,z=0})
object:set_acceleration({x=0,y=0,z=0})
if object._flowing then
object._flowing = false
end
object:move_to(checkpos)
pool[name] = pool[name] + 1