Skip to content

Commit 5227a75

Browse files
authored
Entities: improve the empty check
1 parent db4a96f commit 5227a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

O21.Game/Engine/Entities.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ and OxygenStorage = {
6666
let timer = this.Timer.Update(timeDelta)
6767
if timer.HasExpired then
6868
let newAmount =
69-
if this.Amount >= 0 then
69+
if not this.IsEmpty then
7070
this.Amount - timer.ExpirationCount
7171
else GameRules.MaxOxygenUnits
7272
{

0 commit comments

Comments
 (0)