mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
8a3c8cfcd4
By: md_5 <git@md-5.net>
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
|
|
@@ -351,7 +351,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();
|