mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 00:07:56 +01:00
30e4583dbe
By: Initial Source <noreply+automated@papermc.io>
18 lines
570 B
Diff
18 lines
570 B
Diff
--- a/net/minecraft/world/entity/ItemBasedSteering.java
|
|
+++ b/net/minecraft/world/entity/ItemBasedSteering.java
|
|
@@ -53,6 +53,14 @@
|
|
return (Integer) this.entityData.get(this.boostTimeAccessor);
|
|
}
|
|
|
|
+ // CraftBukkit add setBoostTicks(int)
|
|
+ public void setBoostTicks(int ticks) {
|
|
+ this.boosting = true;
|
|
+ this.boostTime = 0;
|
|
+ this.entityData.set(this.boostTimeAccessor, ticks);
|
|
+ }
|
|
+ // CraftBukkit end
|
|
+
|
|
public void addAdditionalSaveData(CompoundTag nbt) {
|
|
nbt.putBoolean("Saddle", this.hasSaddle());
|
|
}
|