mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
From c7a89c6bc396372086d221e61f91a4dcae92a800 Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
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/server/EntityMinecartAbstract.java b/src/main/java/net/minecraft/server/EntityMinecartAbstract.java
|
|
index 1b64ad824..4388186db 100644
|
|
--- a/src/main/java/net/minecraft/server/EntityMinecartAbstract.java
|
|
+++ b/src/main/java/net/minecraft/server/EntityMinecartAbstract.java
|
|
@@ -59,9 +59,9 @@ public abstract class EntityMinecartAbstract 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
|
|
|
|
--
|
|
2.24.1
|
|
|