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

index ae8e7252c95664d7ea74965adcd8c2a1d3a50782..8ad6b5b5544199ee87f2a09699648a3d7ecc6f2f 100644 (file)
@@ -272,6 +272,10 @@ local patrons   = {
 local name
 local temp_cape
 local get_texture = function(player)
+    if not player then
+        return
+    end
+
     name = string.lower(player:get_player_name())
 
     temp_cape = nil