Code maintanance

This commit is contained in:
Alexander Weber 2020-08-28 17:18:38 +02:00
parent 7d78f96c2b
commit 4376b55a2f

View File

@ -102,7 +102,7 @@ minetest.register_globalstep(function(dtime)
-- (since the scheduling is a bit behind)
-- experimentally this also works nicely
local pos = vector.add (
vector.add({x = 0, y = 1, z = 0}, vector.round(player:getpos())),
vector.add({x = 0, y = 1, z = 0}, vector.round(player:get_pos())),
vector.round(vector.multiply(player:get_player_velocity(), update_interval * 1.5))
)