Skip to content

Commit ba82ab4

Browse files
Copilotrubensworks
andauthored
Fix division by zero in ParticleBubbleExtended.tick() with pre-decrement
Agent-Logs-Url: https://github.com/CyclopsMC/EvilCraft/sessions/23b54d78-1ab3-49a5-84e7-d5bf6cadf9f1 Co-authored-by: rubensworks <440384+rubensworks@users.noreply.github.com>
1 parent c6a0499 commit ba82ab4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/cyclops/evilcraft/client/particle/ParticleBubbleExtended.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void tick() {
3232
this.xo = this.x;
3333
this.yo = this.y;
3434
this.zo = this.z;
35-
if (this.lifetime-- <= 0) {
35+
if (--this.lifetime <= 0) {
3636
this.remove();
3737
} else {
3838
this.yd -= gravity;

0 commit comments

Comments
 (0)