From bda5980713f0b0d6c9ef83edb2cc50615962ccd0 Mon Sep 17 00:00:00 2001 From: Giov4 Date: Sat, 26 Dec 2020 16:35:03 +0100 Subject: [PATCH] - Fixed crash introduce by the last commit --- _compatible_mods/3d_armor/init_3d_armor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_compatible_mods/3d_armor/init_3d_armor.lua b/_compatible_mods/3d_armor/init_3d_armor.lua index 91fa722..56a80da 100644 --- a/_compatible_mods/3d_armor/init_3d_armor.lua +++ b/_compatible_mods/3d_armor/init_3d_armor.lua @@ -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)