1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00

Merge pull request #228 from iltar/only-add-market-item-when-enabled

Only add the market item when market is enabled
This commit is contained in:
grilledham 2018-10-08 20:25:24 +01:00 committed by GitHub
commit 3f77f8a737
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')