2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/monster/EntityStrider.java
|
|
|
|
+++ b/net/minecraft/world/entity/monster/EntityStrider.java
|
2023-09-21 18:40:00 +02:00
|
|
|
@@ -351,7 +351,14 @@
|
2021-01-29 10:00:43 +01:00
|
|
|
|
2023-03-14 17:30:00 +01:00
|
|
|
boolean flag2 = flag1;
|
|
|
|
|
|
|
|
- this.setSuffocating(!flag || flag2);
|
2022-06-07 18:00:00 +02:00
|
|
|
+ // CraftBukkit start
|
2023-03-14 17:30:00 +01:00
|
|
|
+ boolean suffocating = !flag || flag2;
|
|
|
|
+ if (suffocating ^ this.isSuffocating()) {
|
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callStriderTemperatureChangeEvent(this, suffocating)) {
|
|
|
|
+ this.setSuffocating(suffocating);
|
2022-06-07 18:00:00 +02:00
|
|
|
+ }
|
2021-07-03 01:36:51 +02:00
|
|
|
+ }
|
2022-06-07 18:00:00 +02:00
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|
|
|
|
|
2021-01-29 10:00:43 +01:00
|
|
|
super.tick();
|