aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/ItemBasedSteering.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/ItemBasedSteering.java.patch')
-rw-r--r--patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/ItemBasedSteering.java.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/ItemBasedSteering.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/ItemBasedSteering.java.patch
new file mode 100644
index 0000000000..60e69f4544
--- /dev/null
+++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/ItemBasedSteering.java.patch
@@ -0,0 +1,18 @@
+--- a/net/minecraft/world/entity/ItemBasedSteering.java
++++ b/net/minecraft/world/entity/ItemBasedSteering.java
+@@ -53,9 +53,13 @@
+ return (Integer) this.entityData.get(this.boostTimeAccessor);
+ }
+
+- public void addAdditionalSaveData(CompoundTag compoundtag) {
+- compoundtag.putBoolean("Saddle", this.hasSaddle());
++ // 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 readAdditionalSaveData(CompoundTag compoundtag) {
+ this.setSaddle(compoundtag.getBoolean("Saddle"));