Fix item entity jittering after falling on floor
This commit is contained in:
parent
e99dd9d085
commit
db26ba2191
|
@ -393,12 +393,6 @@ core.register_entity(":__builtin:item", {
|
|||
self.physical_state = false
|
||||
self.object:set_properties({physical = false})
|
||||
return
|
||||
elseif self.physical_state == false then
|
||||
-- Start falling again if map has been loaded again
|
||||
self.object:setacceleration({x = 0, y = -get_gravity(), z = 0})
|
||||
self.physical_state = true
|
||||
self.object:set_properties({physical = true})
|
||||
return
|
||||
end
|
||||
|
||||
-- Destroy item in lava or special nodes
|
||||
|
|
Loading…
Reference in New Issue
Block a user