mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-22 20:43:43 +01:00
Remove unnecessary code
This commit is contained in:
parent
1570efb7ac
commit
3843578a33
@ -289,7 +289,6 @@ end
|
|||||||
|
|
||||||
armor.update_inventory = function(self, player)
|
armor.update_inventory = function(self, player)
|
||||||
-- DEPRECIATED: Legacy inventory support
|
-- DEPRECIATED: Legacy inventory support
|
||||||
self:run_callbacks("on_update", player)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
armor.get_valid_player = function(self, player, msg)
|
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)
|
armor:register_on_update(function(player)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local formspec = armor:get_armor_formspec(name, true)
|
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)
|
inventory_plus.set_inventory_formspec(player, formspec)
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
if minetest.get_modpath("crafting") then
|
if minetest.get_modpath("crafting") then
|
||||||
inventory_plus.get_formspec = function(player, page)
|
inventory_plus.get_formspec = function(player, page)
|
||||||
|
Loading…
Reference in New Issue
Block a user