mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-08-19 04:24:11 +02:00
parent
1dec1f2153
commit
38fc2cff2b
@ -69,12 +69,12 @@ end
|
|||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
wieldview.wielded_item[name] = ""
|
wieldview.wielded_item[name] = ""
|
||||||
minetest.after(0, function()
|
minetest.after(0, function(pname)
|
||||||
local pplayer = minetest.get_player_by_name(name)
|
local pplayer = minetest.get_player_by_name(pname)
|
||||||
if player then
|
if pplayer then
|
||||||
wieldview:update_wielded_item(pplayer)
|
wieldview:update_wielded_item(pplayer)
|
||||||
end
|
end
|
||||||
end)
|
end, name)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_globalstep(function(dtime)
|
minetest.register_globalstep(function(dtime)
|
||||||
|
Loading…
Reference in New Issue
Block a user