From 4177632d2103280f2e004d9a798c677bfede2cd1 Mon Sep 17 00:00:00 2001 From: Gustavo Ramos Rehermann Date: Wed, 9 Feb 2022 04:03:37 -0300 Subject: [PATCH] Fix gravity on items that leave waterflow --- mods/ENTITIES/mcl_item_entity/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ENTITIES/mcl_item_entity/init.lua b/mods/ENTITIES/mcl_item_entity/init.lua index a348001d6..91e152ca1 100644 --- a/mods/ENTITIES/mcl_item_entity/init.lua +++ b/mods/ENTITIES/mcl_item_entity/init.lua @@ -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