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:
commit
ddede0c3bc
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user