3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-23 23:00:08 +01:00
Paper/nms-patches/SaddleStorage.patch

19 Zeilen
552 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) {
2020-08-11 23:00:00 +02:00
+ this.boosting = true;
+ this.currentBoostTicks = 0;
+ this.boostTicks = ticks;
+ this.dataWatcher.set(this.dataWatcherBoostTicks, this.boostTicks);
+ }
+ // CraftBukkit end
+
public void a(NBTTagCompound nbttagcompound) {
nbttagcompound.setBoolean("Saddle", this.hasSaddle());
}