Remove unnecessary code

This commit is contained in:
stujones11 2017-03-19 16:40:24 +00:00
parent 1570efb7ac
commit 3843578a33
2 changed files with 1 additions and 5 deletions

View File

@ -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)

View File

@ -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
end)
if minetest.get_modpath("crafting") then
inventory_plus.get_formspec = function(player, page)