mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Make player wield switch instant
This commit is contained in:
parent
95b0a27213
commit
9cbfaf012e
1 changed files with 3 additions and 7 deletions
|
@ -74,13 +74,9 @@ minetest.register_on_joinplayer(function(player)
|
||||||
end, player)
|
end, player)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_globalstep(function(dtime)
|
minetest.register_globalstep(function()
|
||||||
time = time + dtime
|
for _,player in ipairs(minetest.get_connected_players()) do
|
||||||
if time > update_time then
|
wieldview:update_wielded_item(player)
|
||||||
for _,player in ipairs(minetest.get_connected_players()) do
|
|
||||||
wieldview:update_wielded_item(player)
|
|
||||||
end
|
|
||||||
time = 0
|
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue