From 9ab76791719014fb628ae44b30211810ac18fa74 Mon Sep 17 00:00:00 2001 From: Lynn Date: Mon, 8 Oct 2018 21:17:13 +0200 Subject: [PATCH] Only add the market item when market is enabled --- control.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/control.lua b/control.lua index a2baa426..71782d4d 100644 --- a/control.lua +++ b/control.lua @@ -42,7 +42,9 @@ local function player_created(event) return end - player.insert {name = MARKET_ITEM, count = 10} + if (global.scenario.config.fish_market.enable) then + player.insert {name = MARKET_ITEM, count = 10} + end player.insert {name = 'iron-gear-wheel', count = 8} player.insert {name = 'iron-plate', count = 16} player.print('Welcome to our Server. You can join our Discord at: redmew.com/discord')