From 42637df12d69c99e78becdefdd8a04aec29435c3 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Mon, 1 Jul 2019 00:48:20 +0100 Subject: [PATCH] Fix nuke --- .../java/techreborn/entities/EntityNukePrimed.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/main/java/techreborn/entities/EntityNukePrimed.java b/src/main/java/techreborn/entities/EntityNukePrimed.java index 990576ac2..ff92e5a50 100644 --- a/src/main/java/techreborn/entities/EntityNukePrimed.java +++ b/src/main/java/techreborn/entities/EntityNukePrimed.java @@ -74,18 +74,13 @@ public class EntityNukePrimed extends TntEntity { double motionZ = velocity.z; if (!this.hasNoGravity()) { - motionY -= 0.03999999910593033D; + this.setVelocity(this.getVelocity().add(0.0D, -0.04D, 0.0D)); } - this.move(MovementType.SELF, new Vec3d(motionX, motionZ, motionY)); - motionX *= 0.9800000190734863D; - motionY *= 0.9800000190734863D; - motionZ *= 0.9800000190734863D; - + this.move(MovementType.SELF, this.getVelocity()); + this.setVelocity(this.getVelocity().multiply(0.98D)); if (this.onGround) { - motionX *= 0.699999988079071D; - motionZ *= 0.699999988079071D; - motionY *= -0.5D; + this.setVelocity(this.getVelocity().multiply(0.7D, -0.5D, 0.7D)); } setVelocity(new Vec3d(motionX, motionZ, motionY));