mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 19:02:26 +01:00
Disable physics when items are stuck
This commit is contained in:
parent
4ff31ffa8c
commit
4fd6e527a1
@ -465,9 +465,9 @@ core.register_entity(":__builtin:item", {
|
||||
self.object:setvelocity(newv)
|
||||
|
||||
self.object:setacceleration({x = 0, y = -get_gravity(), z = 0})
|
||||
self.physical_state = true
|
||||
self.physical_state = false
|
||||
self.object:set_properties({
|
||||
physical = true
|
||||
physical = false
|
||||
})
|
||||
return
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user