From dc6fbeeafd3d18ca187b9c2f8bab0e643ecff65c Mon Sep 17 00:00:00 2001 From: Sumyjkl Date: Fri, 22 Jul 2022 16:55:42 +1000 Subject: [PATCH] items will go into sleep mode even if there's a block above as long as it's not a liquid --- mods/ENTITIES/mcl_item_entity/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_item_entity/init.lua b/mods/ENTITIES/mcl_item_entity/init.lua index 8e808610a..60e0a7391 100644 --- a/mods/ENTITIES/mcl_item_entity/init.lua +++ b/mods/ENTITIES/mcl_item_entity/init.lua @@ -662,7 +662,7 @@ minetest.register_entity(":__builtin:item", { and math.abs(self.object:get_velocity().z) < sleep_threshold local is_floating = (is_stationary and is_in_water - and nn_above == "air") + and (minetest.get_item_group(nn_above, "liquid") == 0)) if is_floating then self.object:set_velocity({x = 0, y = 0, z = 0}) self.object:set_acceleration({x = 0, y = 0, z = 0})