From: oilboi <47129783+oilboi@users.noreply.github.com> Date: Fri, 3 Jul 2020 19:38:29 +0000 (-0400) Subject: Update init.lua X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=47ae9bd546010f0661c10d7deb92726b770eb8d9;p=Crafter.git Update init.lua --- diff --git a/mods/skins/init.lua b/mods/skins/init.lua index f8b5ec0..ae8e725 100644 --- a/mods/skins/init.lua +++ b/mods/skins/init.lua @@ -60,7 +60,7 @@ local fetch_function = function(name) fetch_url("https://raw.githubusercontent.com/"..name.."/crafter_skindex/master/skin.png", function(data) if data then - if not player:is_player() then + if not minetest.get_player_by_name(name) then return end new_temp_path = temppath .. DIR_DELIM .. "/skin_"..name..".png"