1
0
Fork 0

items will go into sleep mode even if there's a block above as long as it's not a liquid

wood_api
Sumyjkl 2022-07-22 16:55:42 +10:00
parent 70aca4c3ca
commit dc6fbeeafd
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ minetest.register_entity(":__builtin:item", {
and math.abs(self.object:get_velocity().z) < sleep_threshold and math.abs(self.object:get_velocity().z) < sleep_threshold
local is_floating = (is_stationary local is_floating = (is_stationary
and is_in_water and is_in_water
and nn_above == "air") and (minetest.get_item_group(nn_above, "liquid") == 0))
if is_floating then if is_floating then
self.object:set_velocity({x = 0, y = 0, z = 0}) self.object:set_velocity({x = 0, y = 0, z = 0})
self.object:set_acceleration({x = 0, y = 0, z = 0}) self.object:set_acceleration({x = 0, y = 0, z = 0})