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

Merge pull request #740 from plague006/fix/retailer

Add check for 0 price and 0 player limit
This commit is contained in:
Matthew 2019-02-04 03:45:50 -05:00 committed by GitHub
commit ddede0c3bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,7 +273,9 @@ local function redraw_market_items(data)
local disabled = item.disabled == true
local message
if total_price == 0 then
if total_price == 0 and player_limit == 0 then
message = 'SOLD!'
elseif total_price == 0 then
message = 'FREE!'
elseif total_price == 1 then
message = '1 coin'