Fix gravity on dropped items
This commit is contained in:
parent
14c51b153f
commit
510db02b57
@ -75,14 +75,11 @@ minetest.register_globalstep(
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
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().physical_state = true
|
||||||
|
|
||||||
object:get_luaentity().object:set_properties(
|
object:get_luaentity().object:set_properties({physical = true})
|
||||||
{
|
|
||||||
physical = true
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user