aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/entities
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/common/entities')
-rw-r--r--src/main/java/gregtech/common/entities/GT_Entity_Arrow.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/gregtech/common/entities/GT_Entity_Arrow.java b/src/main/java/gregtech/common/entities/GT_Entity_Arrow.java
index bc8b918af1..2983a6580c 100644
--- a/src/main/java/gregtech/common/entities/GT_Entity_Arrow.java
+++ b/src/main/java/gregtech/common/entities/GT_Entity_Arrow.java
@@ -242,14 +242,14 @@ public class GT_Entity_Arrow extends EntityArrow {
}
}
}
- WorldSpawnedEventBuilder.ParticleEventBuilder events = (WorldSpawnedEventBuilder.ParticleEventBuilder)
- new WorldSpawnedEventBuilder.ParticleEventBuilder()
+ WorldSpawnedEventBuilder.ParticleEventBuilder events = new WorldSpawnedEventBuilder.ParticleEventBuilder()
.setWorld(this.worldObj);
+
if (getIsCritical()) {
events.setIdentifier("crit")
+ .setMotion(-this.motionX, -this.motionY + 0.2D, -this.motionZ)
.<WorldSpawnedEventBuilder.ParticleEventBuilder>times(4, (x, i) ->
- x.setMotion(-this.motionX, -this.motionY + 0.2D, -this.motionZ)
- .setPosition(
+ x.setPosition(
this.posX + this.motionX * i / 4.0D,
this.posY + this.motionY * i / 4.0D,
this.posZ + this.motionZ * i / 4.0D