mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Fix item entity jittering after falling on floor
This commit is contained in:
parent
e99dd9d085
commit
db26ba2191
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue