Skip to content

Commit

Permalink
Fixed IllegalArgumentException when not enough space in a pump's flui…
Browse files Browse the repository at this point in the history
…d container
  • Loading branch information
NichtStudioCode committed Jan 4, 2022
1 parent 1e2a246 commit a0d4eea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>xyz.xenondevs</groupId>
<artifactId>Nova</artifactId>
<version>0.7.6</version>
<version>0.7.7</version>

<properties>
<kotlin.version>1.6.10</kotlin.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Pump(
}

override fun handleTick() {
if (energyHolder.energy >= energyHolder.energyConsumption && !fluidTank.isFull()) {
if (energyHolder.energy >= energyHolder.energyConsumption && fluidTank.accepts(FluidType.WATER, 1000)) {
if (--idleTime <= 0)
pumpNextBlock()
}
Expand Down

0 comments on commit a0d4eea

Please sign in to comment.