Skip to content

Commit

Permalink
slight particle optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Oribuin committed Dec 17, 2024
1 parent 495be2c commit c733923
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/xyz/oribuin/fishing/totem/Totem.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,14 @@ public void tickAsync() {

// Spawn additional particles around the totem bounds while active
if (this.active) {
this.bounds.forEach(x -> this.dust(Color.LIME).location(x.clone().add(0, 0.5, 0)).spawn());
ParticleBuilder dust = this.dust(Color.LIME);
this.bounds.forEach(x -> dust.clone().location(x.clone().add(0, 1.5, 0)).spawn());
}

this.lastTick = System.currentTimeMillis();
}

// Make the totem rotate it's head
if (this.active && this.entity != null) {
if (this.rotation >= 360) this.rotation = -1;
this.rotation += 2;
Expand Down

0 comments on commit c733923

Please sign in to comment.