From 1043910fde3fddc7ccf40ca4ee86c60979e97162 Mon Sep 17 00:00:00 2001 From: Max5377 <69468517+Max5377@users.noreply.github.com> Date: Thu, 14 Sep 2023 19:40:31 +0300 Subject: [PATCH] Fix +10%/-10% fuel buttons in station's lobby Updated to fix mixed up behaviour of decreasing in stock and demand of station's goods using +10%/-10% fuel buttons(-10% decreases in stock and +10% decreases demand). --- data/pigui/modules/station-view/01-lobby.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/pigui/modules/station-view/01-lobby.lua b/data/pigui/modules/station-view/01-lobby.lua index ef2d0b936bf..22eeb69b9f8 100644 --- a/data/pigui/modules/station-view/01-lobby.lua +++ b/data/pigui/modules/station-view/01-lobby.lua @@ -129,7 +129,7 @@ local refuelInternalTank = function (delta) Game.player:AddMoney(-total) local commodityChangeAmount = mass < 0 and math.floor(mass) or math.ceil(mass) - station:AddCommodityStock(Commodities.hydrogen, commodityChangeAmount) + station:AddCommodityStock(Commodities.hydrogen, -commodityChangeAmount) Game.player:SetFuelPercent(fuel) end