mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2025-02-17 00:52:30 +01:00
Fix nil fields exception for unknown items.
This commit is contained in:
@ -27,6 +27,9 @@ armor_api.get_wielded_item_texture = function(self, player)
|
||||
if not item then
|
||||
return nil
|
||||
end
|
||||
if not minetest.registered_items[item] then
|
||||
return nil
|
||||
end
|
||||
local texture = minetest.registered_items[item].inventory_image
|
||||
if texture == "" then
|
||||
if not minetest.registered_items[item].tiles then
|
||||
|
Reference in New Issue
Block a user