From 4adc6027049c7a427ad7af261419e6ccd6c4291d Mon Sep 17 00:00:00 2001 From: Panquesito7 <51391473+Panquesito7@users.noreply.github.com> Date: Mon, 17 Jun 2019 13:03:27 -0500 Subject: [PATCH] Update api.lua --- 3d_armor/api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3d_armor/api.lua b/3d_armor/api.lua index 674118e..42c0c58 100644 --- a/3d_armor/api.lua +++ b/3d_armor/api.lua @@ -465,8 +465,8 @@ end armor.load_armor_inventory = function(self, player) local _, inv = self:get_valid_player(player, "[load_armor_inventory]") - local meta = player:get_meta() if inv then + local meta = player:get_meta() local armor_list_string = meta:get_string("3d_armor_inventory") if armor_list_string then inv:set_list("armor", @@ -478,8 +478,8 @@ end armor.save_armor_inventory = function(self, player) local _, inv = self:get_valid_player(player, "[save_armor_inventory]") - local meta = player:get_meta() if inv then + local meta = player:get_meta() meta:set_string("3d_armor_inventory", self:serialize_inventory_list(inv:get_list("armor"))) end