mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Fix possible nil bug in wieldview mod
This commit is contained in:
parent
d0678d33f8
commit
156a0c9cb0
1 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,9 @@ wieldview.update_wielded_item = function(self, player)
|
||||||
if self.wielded_item[name] == item then
|
if self.wielded_item[name] == item then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
if not armor.textures[name] then
|
||||||
|
return
|
||||||
|
end
|
||||||
armor.textures[name].wielditem = self:get_item_texture(item)
|
armor.textures[name].wielditem = self:get_item_texture(item)
|
||||||
armor:update_player_visuals(player)
|
armor:update_player_visuals(player)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue