Disable physics when items are stuck

This commit is contained in:
Wuzzy 2017-05-29 23:20:29 +02:00
parent 4ff31ffa8c
commit 4fd6e527a1
1 changed files with 2 additions and 2 deletions

View File

@ -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