Fix item entity jittering after falling on floor

This commit is contained in:
Wuzzy 2017-05-27 17:06:32 +02:00
parent e99dd9d085
commit db26ba2191

View File

@ -393,12 +393,6 @@ core.register_entity(":__builtin:item", {
self.physical_state = false self.physical_state = false
self.object:set_properties({physical = false}) self.object:set_properties({physical = false})
return 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 end
-- Destroy item in lava or special nodes -- Destroy item in lava or special nodes