forked from mtcontrib/3d_armor
Remove unnecessary code
This commit is contained in:
parent
1570efb7ac
commit
3843578a33
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user