From 6ffe25eed6dc1cf9afa5a4e458ce4bb4a993218c Mon Sep 17 00:00:00 2001 From: David Vrabel Date: Tue, 21 Aug 2012 00:46:09 +0100 Subject: [PATCH] Use original minecart drag co-efficients for regular carts. Since the amount of speed lost is 1 - co-eff, rounding 0.997 to 0.99 makes a big difference to the distance a minecart will travel (less than half of the distance in vanilla 1.25). --- patches/common/net/minecraft/src/EntityMinecart.java.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/patches/common/net/minecraft/src/EntityMinecart.java.patch b/patches/common/net/minecraft/src/EntityMinecart.java.patch index 50a44c129..e0b1114ee 100644 --- a/patches/common/net/minecraft/src/EntityMinecart.java.patch +++ b/patches/common/net/minecraft/src/EntityMinecart.java.patch @@ -16,7 +16,7 @@ public class EntityMinecart extends Entity implements IInventory { -@@ -31,6 +39,23 @@ +@@ -31,6 +39,25 @@ @SideOnly(Side.CLIENT) protected double velocityZ; @@ -25,6 +25,8 @@ + public static float defaultMaxSpeedGround = 0.4f; + public static float defaultMaxSpeedAirLateral = 0.4f; + public static float defaultMaxSpeedAirVertical = -1f; ++ public static double defaultDragRidden = 0.996999979019165D; ++ public static double defaultDragEmpty = 0.9599999785423279D; + public static double defaultDragAir = 0.94999998807907104D; + protected boolean canUseRail = true; + protected boolean canBePushed = true; @@ -710,7 +712,7 @@ + */ + protected double getDrag() + { -+ return riddenByEntity != null ? 0.99D : 0.96D; ++ return riddenByEntity != null ? defaultDragRidden : defaultDragEmpty; + } + + /**