2024-12-11 22:26:55 +01:00
|
|
|
--- a/net/minecraft/world/entity/ItemBasedSteering.java
|
|
|
|
+++ b/net/minecraft/world/entity/ItemBasedSteering.java
|
2023-03-14 17:30:00 +01:00
|
|
|
@@ -53,6 +53,14 @@
|
|
|
|
return (Integer) this.entityData.get(this.boostTimeAccessor);
|
2020-06-30 01:54:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
+ // CraftBukkit add setBoostTicks(int)
|
|
|
|
+ public void setBoostTicks(int ticks) {
|
2020-08-11 23:00:00 +02:00
|
|
|
+ this.boosting = true;
|
2021-06-11 07:00:00 +02:00
|
|
|
+ this.boostTime = 0;
|
2023-03-14 17:30:00 +01:00
|
|
|
+ this.entityData.set(this.boostTimeAccessor, ticks);
|
2020-06-30 01:54:28 +02:00
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
+
|
2024-12-11 22:26:55 +01:00
|
|
|
public void addAdditionalSaveData(CompoundTag nbt) {
|
|
|
|
nbt.putBoolean("Saddle", this.hasSaddle());
|
2020-06-30 01:54:28 +02:00
|
|
|
}
|