]> git.lizzy.rs Git - Crafter.git/commitdiff
Update init.lua
authoroilboi <47129783+oilboi@users.noreply.github.com>
Fri, 3 Jul 2020 19:38:29 +0000 (15:38 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Fri, 3 Jul 2020 19:38:29 +0000 (15:38 -0400)
mods/skins/init.lua

index f8b5ec02314f0be84422bbffa034e29bd6a2562b..ae8e7252c95664d7ea74965adcd8c2a1d3a50782 100644 (file)
@@ -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"