Fix gravity on dropped items

This commit is contained in:
KaadmY 2017-05-19 14:13:27 -07:00
parent 14c51b153f
commit 510db02b57

View File

@ -75,14 +75,11 @@ minetest.register_globalstep(
end
end
else
object:setvelocity({x = 0, y = 0, z = 0})
object:setvelocity({x = 0, y = object:getvelocity().y, z = 0})
object:get_luaentity().physical_state = true
object:get_luaentity().object:set_properties(
{
physical = true
})
object:get_luaentity().object:set_properties({physical = true})
end
end
end