1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2024-12-25 02:00:39 +01:00

Fix typo in wieldview (#56)

* Fix typo in wieldview
fixes #55
This commit is contained in:
bell07 2021-06-26 20:21:15 +02:00 committed by GitHub
parent 1dec1f2153
commit 38fc2cff2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,12 +69,12 @@ end
minetest.register_on_joinplayer(function(player)
local name = player:get_player_name()
wieldview.wielded_item[name] = ""
minetest.after(0, function()
local pplayer = minetest.get_player_by_name(name)
if player then
minetest.after(0, function(pname)
local pplayer = minetest.get_player_by_name(pname)
if pplayer then
wieldview:update_wielded_item(pplayer)
end
end)
end, name)
end)
minetest.register_globalstep(function(dtime)