From c5e9a169fa564f3b8119b6666f8df59d5a9b45c3 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 10 May 2016 21:47:39 +1000 Subject: Minecraft 1.9.4 --- nms-patches/EntityMinecartAbstract.patch | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'nms-patches/EntityMinecartAbstract.patch') diff --git a/nms-patches/EntityMinecartAbstract.patch b/nms-patches/EntityMinecartAbstract.patch index 099aa1a2..8b959348 100644 --- a/nms-patches/EntityMinecartAbstract.patch +++ b/nms-patches/EntityMinecartAbstract.patch @@ -1,8 +1,8 @@ --- a/net/minecraft/server/EntityMinecartAbstract.java +++ b/net/minecraft/server/EntityMinecartAbstract.java -@@ -4,6 +4,15 @@ - import java.util.Iterator; +@@ -5,6 +5,15 @@ import java.util.Map; + import javax.annotation.Nullable; +// CraftBukkit start +import org.bukkit.Location; @@ -16,9 +16,9 @@ public abstract class EntityMinecartAbstract extends Entity implements INamableTileEntity { private static final DataWatcherObject a = DataWatcher.a(EntityMinecartAbstract.class, DataWatcherRegistry.b); -@@ -21,6 +30,17 @@ - private double aw; +@@ -22,6 +31,17 @@ private double ax; + private double ay; + // CraftBukkit start + public boolean slowWhenEmpty = true; @@ -34,7 +34,7 @@ public EntityMinecartAbstract(World world) { super(world); this.i = true; -@@ -86,6 +106,8 @@ +@@ -89,6 +109,8 @@ this.lastX = d0; this.lastY = d1; this.lastZ = d2; @@ -43,7 +43,7 @@ } public double ay() { -@@ -97,6 +119,19 @@ +@@ -100,6 +122,19 @@ if (this.isInvulnerable(damagesource)) { return false; } else { @@ -63,7 +63,7 @@ this.e(-this.u()); this.d(10); this.ao(); -@@ -104,6 +139,15 @@ +@@ -107,6 +142,15 @@ boolean flag = damagesource.getEntity() instanceof EntityHuman && ((EntityHuman) damagesource.getEntity()).abilities.canInstantlyBuild; if (flag || this.getDamage() > 40.0F) { @@ -79,7 +79,7 @@ this.az(); if (flag && !this.hasCustomName()) { this.die(); -@@ -146,6 +190,14 @@ +@@ -149,6 +193,14 @@ } public void m() { @@ -94,7 +94,7 @@ if (this.getType() > 0) { this.d(this.getType() - 1); } -@@ -166,7 +218,7 @@ +@@ -169,7 +221,7 @@ i = this.V(); if (this.ak) { @@ -103,7 +103,7 @@ if (!this.isPassenger() && this.al++ >= i) { this.al = i; this.portalCooldown = this.aC(); -@@ -263,6 +315,20 @@ +@@ -266,6 +318,20 @@ } this.setYawPitch(this.yaw, this.pitch); @@ -124,7 +124,7 @@ Iterator iterator = this.world.getEntities(this, this.getBoundingBox().grow(0.20000000298023224D, 0.0D, 0.20000000298023224D)).iterator(); while (iterator.hasNext()) { -@@ -278,7 +344,7 @@ +@@ -281,7 +347,7 @@ } protected double o() { @@ -133,7 +133,7 @@ } public void a(int i, int j, int k, boolean flag) {} -@@ -289,16 +355,20 @@ +@@ -292,16 +358,20 @@ this.motX = MathHelper.a(this.motX, -d0, d0); this.motZ = MathHelper.a(this.motZ, -d0, d0); if (this.onGround) { @@ -160,7 +160,7 @@ } } -@@ -487,7 +557,7 @@ +@@ -490,7 +560,7 @@ } protected void r() { @@ -169,7 +169,7 @@ this.motX *= 0.996999979019165D; this.motY *= 0.0D; this.motZ *= 0.996999979019165D; -@@ -599,6 +669,17 @@ +@@ -602,6 +672,17 @@ if (!this.world.isClientSide) { if (!entity.noclip && !this.noclip) { if (!this.w(entity)) { @@ -187,7 +187,7 @@ if (entity instanceof EntityLiving && this.v() == EntityMinecartAbstract.EnumMinecartType.RIDEABLE && this.motX * this.motX + this.motZ * this.motZ > 0.01D && !(entity instanceof EntityHuman) && !(entity instanceof EntityIronGolem) && !this.isVehicle() && !entity.isPassenger()) { entity.startRiding(this); } -@@ -607,7 +688,8 @@ +@@ -610,7 +691,8 @@ double d1 = entity.locZ - this.locZ; double d2 = d0 * d0 + d1 * d1; @@ -197,7 +197,7 @@ d2 = (double) MathHelper.sqrt(d2); d0 /= d2; d1 /= d2; -@@ -836,4 +918,26 @@ +@@ -839,4 +921,26 @@ } } -- cgit v1.2.3