mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
items will go into sleep mode even if there's a block above as long as it's not a liquid
This commit is contained in:
parent
70aca4c3ca
commit
dc6fbeeafd
1 changed files with 1 additions and 1 deletions
|
@ -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})
|
||||||
|
|
Loading…
Reference in a new issue