2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/entity/SaddleStorage.java
|
|
|
|
+++ b/net/minecraft/world/entity/SaddleStorage.java
|
2021-06-11 15:00:00 +10:00
|
|
|
@@ -40,6 +40,15 @@
|
2020-06-30 09:54:28 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // CraftBukkit add setBoostTicks(int)
|
|
|
|
+ public void setBoostTicks(int ticks) {
|
2020-08-12 07:00:00 +10:00
|
|
|
+ this.boosting = true;
|
2021-06-11 15:00:00 +10:00
|
|
|
+ this.boostTime = 0;
|
|
|
|
+ this.boostTimeTotal = ticks;
|
|
|
|
+ this.entityData.set(this.boostTimeAccessor, this.boostTimeTotal);
|
2020-06-30 09:54:28 +10:00
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
+
|
2021-11-22 09:00:00 +11:00
|
|
|
public void addAdditionalSaveData(NBTTagCompound nbttagcompound) {
|
|
|
|
nbttagcompound.putBoolean("Saddle", this.hasSaddle());
|
2020-06-30 09:54:28 +10:00
|
|
|
}
|