Skip to content

Commit

Permalink
Update 01-lobby.lua
Browse files Browse the repository at this point in the history
Fix for this issue #5585
  • Loading branch information
Max5377 authored and Webster Sheets committed Sep 13, 2023
1 parent 0be9062 commit 9402808
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/pigui/modules/station-view/01-lobby.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ local refuelInternalTank = function (delta)
end

Game.player:AddMoney(-total)
station:AddCommodityStock(Commodities.hydrogen, -math.ceil(mass))
local commodityChangeAmount = mass < 0 and math.floor(mass) or math.ceil(mass)
station:AddCommodityStock(Commodities.hydrogen, commodityChangeAmount)
Game.player:SetFuelPercent(fuel)
end

Expand Down

0 comments on commit 9402808

Please sign in to comment.