mirror of
https://github.com/PaperMC/Paper.git
synced 2025-04-05 05:51:01 +02:00
18 lines
652 B
Diff
18 lines
652 B
Diff
--- a/net/minecraft/world/entity/monster/EntityStrider.java
|
|
+++ b/net/minecraft/world/entity/monster/EntityStrider.java
|
|
@@ -349,7 +349,14 @@
|
|
|
|
boolean flag2 = flag1;
|
|
|
|
- this.setSuffocating(!flag || flag2);
|
|
+ // CraftBukkit start
|
|
+ boolean suffocating = !flag || flag2;
|
|
+ if (suffocating ^ this.isSuffocating()) {
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callStriderTemperatureChangeEvent(this, suffocating)) {
|
|
+ this.setSuffocating(suffocating);
|
|
+ }
|
|
+ }
|
|
+ // CraftBukkit end
|
|
}
|
|
|
|
super.tick();
|