PaperMC/paper-server/nms-patches/net/minecraft/world/entity/monster/EntityStrider.patch

19 lines
652 B
Diff
Raw Normal View History

2021-03-15 23:00:00 +01:00
--- 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();