geforkt von Mirrors/Paper
25 Zeilen
1.2 KiB
Diff
25 Zeilen
1.2 KiB
Diff
|
From 0000000000000000000000000000000000000000 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/world/entity/vehicle/AbstractMinecart.java b/src/main/java/net/minecraft/world/entity/vehicle/AbstractMinecart.java
|
||
|
index 7ba74b0a9319e29077b5afe3019a463ed3004813..1257a740a4ab79870fe89057782e8ffc6c658c14 100644
|
||
|
--- a/src/main/java/net/minecraft/world/entity/vehicle/AbstractMinecart.java
|
||
|
+++ b/src/main/java/net/minecraft/world/entity/vehicle/AbstractMinecart.java
|
||
|
@@ -99,9 +99,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
|
||
|
|