3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00
Paper/nms-patches/SaddleStorage.patch
2020-06-30 09:54:28 +10:00

19 Zeilen
614 B
Diff

--- a/net/minecraft/server/SaddleStorage.java
+++ b/net/minecraft/server/SaddleStorage.java
@@ -35,6 +35,15 @@
}
}
+ // CraftBukkit add setBoostTicks(int)
+ public void setBoostTicks(int ticks) {
+ this.a = true; // PAIL rename boosting
+ this.b = 0; // PAIL rename currentBoostTicks
+ this.c = ticks; // PAIL rename boostTicks
+ this.d.set(this.e, this.c); // PAIL rename dataWatcher, dataWatcherBoostTicks
+ }
+ // CraftBukkit end
+
public void a(NBTTagCompound nbttagcompound) {
nbttagcompound.setBoolean("Saddle", this.hasSaddle());
}