- Fixed crash introduce by the last commit

master
Giov4 2020-12-26 16:35:03 +01:00
parent fe07f4243e
commit bda5980713
1 changed files with 1 additions and 1 deletions

View File

@ -49,8 +49,8 @@ minetest.register_on_player_inventory_action(function(player, action, inventory,
if minetest.get_modpath("3d_armor") and arena_lib.is_player_in_arena(pl_name, "skywars") then
-- The armor that the player's taking.
local armor_itemstack = inventory_info.stack
local armor_name = armor_itemstack:get_name()
if not armor_itemstack then return end
local armor_name = armor_itemstack:get_name()
-- The body part that the armor's assigned to, returns nil if it's not an armor.
local is_an_armor = armor:get_element(armor_name)