From 156a0c9cb08959da11433ce28eba737b3a88f5c5 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 19 Jun 2020 19:17:01 +0200 Subject: [PATCH] Fix possible nil bug in wieldview mod --- mods/PLAYER/wieldview/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/PLAYER/wieldview/init.lua b/mods/PLAYER/wieldview/init.lua index ecbb2dc0b..7835cc38f 100644 --- a/mods/PLAYER/wieldview/init.lua +++ b/mods/PLAYER/wieldview/init.lua @@ -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