mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-11 01:51:37 +01:00
19 lines
559 B
Diff
19 lines
559 B
Diff
--- a/net/minecraft/world/entity/SaddleStorage.java
|
|
+++ b/net/minecraft/world/entity/SaddleStorage.java
|
|
@@ -40,6 +40,15 @@
|
|
}
|
|
}
|
|
|
|
+ // CraftBukkit add setBoostTicks(int)
|
|
+ public void setBoostTicks(int ticks) {
|
|
+ this.boosting = true;
|
|
+ this.boostTime = 0;
|
|
+ this.boostTimeTotal = ticks;
|
|
+ this.entityData.set(this.boostTimeAccessor, this.boostTimeTotal);
|
|
+ }
|
|
+ // CraftBukkit end
|
|
+
|
|
public void a(NBTTagCompound nbttagcompound) {
|
|
nbttagcompound.setBoolean("Saddle", this.hasSaddle());
|
|
}
|