From 562fc9e1b810c9f4fae30d24d87bf9717c13a2c8 Mon Sep 17 00:00:00 2001 From: kaadmy Date: Sat, 3 Oct 2015 10:49:54 -0700 Subject: [PATCH] should work in 0.4.13 release now, but might be slower with armor @asl97 --- mods/default/model.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/default/model.lua b/mods/default/model.lua index cef18c5..f89fef2 100644 --- a/mods/default/model.lua +++ b/mods/default/model.lua @@ -69,7 +69,11 @@ function default.player_set_model(player, model_name) end function default.player_get_textures(player) - return player:get_properties().textures + if player.get_properties ~= nil then + return player:get_properties().textures + else + return {"character.png"} -- less efficient but will work + end end function default.player_set_textures(player, textures)