craftbukkit/nms-patches/net/minecraft/world/entity/SaddleStorage.patch

16 lines
480 B
Diff
Raw Normal View History

2021-03-16 09:00:00 +11:00
--- a/net/minecraft/world/entity/SaddleStorage.java
+++ b/net/minecraft/world/entity/SaddleStorage.java
2025-03-26 03:05:00 +11:00
@@ -49,4 +49,12 @@
public int boostTimeTotal() {
2023-03-15 03:30:00 +11:00
return (Integer) this.entityData.get(this.boostTimeAccessor);
}
2025-03-26 03:05:00 +11: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;
2023-03-15 03:30:00 +11:00
+ this.entityData.set(this.boostTimeAccessor, ticks);
+ }
+ // CraftBukkit end
2025-03-26 03:05:00 +11:00
}