Skip to content

Commit

Permalink
Fix typo in wieldview (#56)
Browse files Browse the repository at this point in the history
* Fix typo in wieldview
fixes #55
  • Loading branch information
bell07 committed Jun 26, 2021
1 parent 1dec1f2 commit 38fc2cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wieldview/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 38fc2cf

Please sign in to comment.