Skip to content

Commit

Permalink
Fix +10%/-10% fuel buttons in station's lobby
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
Max5377 authored and Webster Sheets committed Sep 14, 2023
1 parent a0e142e commit cda79b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/pigui/modules/station-view/01-lobby.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cda79b9

Please sign in to comment.