1
0
Fork 0

Fix possible nil bug in wieldview mod

objects
Wuzzy 2020-06-19 19:17:01 +02:00
parent d0678d33f8
commit 156a0c9cb0
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ wieldview.update_wielded_item = function(self, player)
if self.wielded_item[name] == item then
return
end
if not armor.textures[name] then
return
end
armor.textures[name].wielditem = self:get_item_texture(item)
armor:update_player_visuals(player)
end