aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0275-Use-Vanilla-Minecart-Speeds.patch
diff options
context:
space:
mode:
authorSpottedleaf <[email protected]>2023-06-07 22:25:38 -0700
committerSpottedleaf <[email protected]>2023-06-07 22:26:06 -0700
commit74ad522fc5818b84772c7808a27227f4ac84df38 (patch)
treee2b6cea9756d5b59a821b76f56777e35e7ea9844 /patches/server/0275-Use-Vanilla-Minecart-Speeds.patch
parent819facd7c4343f6783d1a4ee84345d5b99ef47ce (diff)
downloadPaper-74ad522fc5818b84772c7808a27227f4ac84df38.tar.gz
Paper-74ad522fc5818b84772c7808a27227f4ac84df38.zip
Rebase chunk patches
Diffstat (limited to 'patches/server/0275-Use-Vanilla-Minecart-Speeds.patch')
-rw-r--r--patches/server/0275-Use-Vanilla-Minecart-Speeds.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/server/0275-Use-Vanilla-Minecart-Speeds.patch b/patches/server/0275-Use-Vanilla-Minecart-Speeds.patch
new file mode 100644
index 0000000000..20249b7e55
--- /dev/null
+++ b/patches/server/0275-Use-Vanilla-Minecart-Speeds.patch
@@ -0,0 +1,24 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Aikar <[email protected]>
+Date: Thu, 8 Nov 2018 21:33:09 -0500
+Subject: [PATCH] Use Vanilla Minecart Speeds
+
+CraftBukkit changed the values on flying speed, restore back to vanilla
+
+diff --git a/src/main/java/net/minecraft/world/entity/vehicle/AbstractMinecart.java b/src/main/java/net/minecraft/world/entity/vehicle/AbstractMinecart.java
+index 700db80055d93274aeccbe4a57a1a98f261442fb..c2a18a8e52f897bc96227854646e53e4dc189362 100644
+--- a/src/main/java/net/minecraft/world/entity/vehicle/AbstractMinecart.java
++++ b/src/main/java/net/minecraft/world/entity/vehicle/AbstractMinecart.java
+@@ -104,9 +104,9 @@ public abstract class AbstractMinecart extends Entity {
+ private double derailedX = 0.5;
+ private double derailedY = 0.5;
+ private double derailedZ = 0.5;
+- private double flyingX = 0.95;
+- private double flyingY = 0.95;
+- private double flyingZ = 0.95;
++ private double flyingX = 0.949999988079071D; // Paper - restore vanilla precision
++ private double flyingY = 0.949999988079071D; // Paper - restore vanilla precision
++ private double flyingZ = 0.949999988079071D; // Paper - restore vanilla precision
+ public double maxSpeed = 0.4D;
+ // CraftBukkit end
+