Code maintanance
This commit is contained in:
parent
7d78f96c2b
commit
4376b55a2f
2
init.lua
2
init.lua
@ -102,7 +102,7 @@ minetest.register_globalstep(function(dtime)
|
|||||||
-- (since the scheduling is a bit behind)
|
-- (since the scheduling is a bit behind)
|
||||||
-- experimentally this also works nicely
|
-- experimentally this also works nicely
|
||||||
local pos = vector.add (
|
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))
|
vector.round(vector.multiply(player:get_player_velocity(), update_interval * 1.5))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user