mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 06:24:06 +01:00
19 lines
552 B
Diff
19 lines
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) {
|
|
+ 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());
|
|
}
|