Fix gravity on items that leave waterflow

This commit is contained in:
wallabra 2022-02-09 04:03:37 -03:00
parent 49d5e1a0f6
commit 4177632d21
Signed by untrusted user: Gustavo6046
GPG Key ID: 5182FABAA5E139B3
1 changed files with 1 additions and 0 deletions

View File

@ -824,6 +824,7 @@ minetest.register_entity(":__builtin:item", {
-- Disable flowing physics if not on/in flowing liquid
self._flowing = false
--enable_physics(self.object, self, true) -- do not reset velocity upon leaving water!
self.object:set_acceleration({x=0,y=-get_gravity(),z=0}) -- resume applying gravity
return
end