mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
43702a9e10
By: md_5 <git@md-5.net>
17 lines
791 B
Diff
17 lines
791 B
Diff
--- a/net/minecraft/world/entity/monster/EntityStrider.java
|
|
+++ b/net/minecraft/world/entity/monster/EntityStrider.java
|
|
@@ -321,7 +321,13 @@
|
|
IBlockData iblockdata1 = this.getBlockStateOn();
|
|
boolean flag = iblockdata.is((Tag) TagsBlock.STRIDER_WARM_BLOCKS) || iblockdata1.is((Tag) TagsBlock.STRIDER_WARM_BLOCKS) || this.getFluidHeight(TagsFluid.LAVA) > 0.0D;
|
|
|
|
- this.setSuffocating(!flag);
|
|
+ // CraftBukkit start
|
|
+ if (!flag ^ this.isSuffocating()) {
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callStriderTemperatureChangeEvent(this, !flag)) {
|
|
+ this.setSuffocating(!flag);
|
|
+ }
|
|
+ }
|
|
+ // CraftBukkit end
|
|
super.tick();
|
|
this.floatStrider();
|
|
this.checkInsideBlocks();
|