remove emeraldmarket in invtab

This commit is contained in:
Freeman 2024-08-07 02:13:58 +02:00
parent 8f1fb719aa
commit 674131651e

@ -26,10 +26,6 @@ local show_tab = core.settings:get_bool("emeraldbank.inv_tab", true)
local function build(player) local function build(player)
local fs = "label[1,1;"..S("Open EmeraldBank interface").."]".. local fs = "label[1,1;"..S("Open EmeraldBank interface").."]"..
"image_button[1,1.3;1,1;default_steel_block.png^mcl_core_emerald.png;bank;".."".."]" "image_button[1,1.3;1,1;default_steel_block.png^mcl_core_emerald.png;bank;".."".."]"
if core.get_modpath("emeraldmarket") then
fs = fs.."label[1,3;"..S("Open Auction Market interface").."]"..
"image_button[1,3.3;1,1;default_gold_block.png^mcl_core_emerald.png;market;".."".."]"
end
return fs return fs
end end
@ -40,11 +36,6 @@ local function handle(player, fields)
atm.showform(player) atm.showform(player)
return true return true
end end
if core.get_modpath("emeraldmarket") and commoditymarket and fields.market then
local name = player:get_player_name()
commoditymarket.show_market("emerald", name)
return true
end
end end
-- This function will be called to know if a player can see the tab -- This function will be called to know if a player can see the tab