mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Disable physics when items are stuck
This commit is contained in:
parent
4ff31ffa8c
commit
4fd6e527a1
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue