aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/entities
diff options
context:
space:
mode:
authorbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2021-03-11 17:49:07 +0100
committerbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2021-03-11 17:49:07 +0100
commit6bda527a33fe4a7a5496cbb3185a04087293a18d (patch)
treea7d8058676b34958e6dd7515efe48335d1a3d812 /src/main/java/gregtech/common/entities
parentb359d79f77bb3efd6433c845af0a948975651b9a (diff)
downloadGT5-Unofficial-6bda527a33fe4a7a5496cbb3185a04087293a18d.tar.gz
GT5-Unofficial-6bda527a33fe4a7a5496cbb3185a04087293a18d.tar.bz2
GT5-Unofficial-6bda527a33fe4a7a5496cbb3185a04087293a18d.zip
Minor improvements
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