mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2025-01-03 20:07:32 +01:00
remove emeraldmarket in invtab
This commit is contained in:
parent
8f1fb719aa
commit
674131651e
@ -26,10 +26,6 @@ local show_tab = core.settings:get_bool("emeraldbank.inv_tab", true)
|
||||
local function build(player)
|
||||
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;".."".."]"
|
||||
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
|
||||
end
|
||||
|
||||
@ -40,11 +36,6 @@ local function handle(player, fields)
|
||||
atm.showform(player)
|
||||
return true
|
||||
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
|
||||
|
||||
-- This function will be called to know if a player can see the tab
|
||||
|
Loading…
Reference in New Issue
Block a user