mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 16:18:02 +01:00
Use Vanilla Minecart Speeds
CraftBukkit changed the values on flying speed, restore back to vanilla Might help #1658
This commit is contained in:
parent
16a6e7ee8b
commit
de3b813dcf
1 changed files with 27 additions and 0 deletions
27
Spigot-Server-Patches/0407-Use-Vanilla-Minecart-Speeds.patch
Normal file
27
Spigot-Server-Patches/0407-Use-Vanilla-Minecart-Speeds.patch
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
From ba4a67a8ef2297d66890683df14305f14353a107 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 932fbff7c7..7fa1bceecb 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/EntityMinecartAbstract.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/EntityMinecartAbstract.java
|
||||||
|
@@ -39,9 +39,9 @@ public abstract class EntityMinecartAbstract extends Entity implements INamableT
|
||||||
|
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.19.1
|
||||||
|
|
Loading…
Reference in a new issue