From 3843578a333bf973bfcaca726c14327e86be344f Mon Sep 17 00:00:00 2001 From: stujones11 Date: Sun, 19 Mar 2017 16:40:24 +0000 Subject: [PATCH] Remove unnecessary code --- 3d_armor/api.lua | 1 - 3d_armor/init.lua | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/3d_armor/api.lua b/3d_armor/api.lua index 94a48f5..8d4b9fe 100644 --- a/3d_armor/api.lua +++ b/3d_armor/api.lua @@ -289,7 +289,6 @@ end armor.update_inventory = function(self, player) -- DEPRECIATED: Legacy inventory support - self:run_callbacks("on_update", player) end armor.get_valid_player = function(self, player, msg) diff --git a/3d_armor/init.lua b/3d_armor/init.lua index b1f122a..0ab0558 100644 --- a/3d_armor/init.lua +++ b/3d_armor/init.lua @@ -76,10 +76,7 @@ if minetest.get_modpath("inventory_plus") then armor:register_on_update(function(player) local name = player:get_player_name() local formspec = armor:get_armor_formspec(name, true) - local page = player:get_inventory_formspec() - if page:find("detached:"..name.."_armor") then - inventory_plus.set_inventory_formspec(player, formspec) - end + inventory_plus.set_inventory_formspec(player, formspec) end) if minetest.get_modpath("crafting") then inventory_plus.get_formspec = function(player, page)