2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/entity/monster/EntityStrider.java
|
|
|
|
+++ b/net/minecraft/world/entity/monster/EntityStrider.java
|
2021-07-03 09:36:51 +10:00
|
|
|
@@ -321,7 +321,13 @@
|
2021-11-22 09:00:00 +11:00
|
|
|
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;
|
2021-01-29 20:00:43 +11:00
|
|
|
|
2021-11-22 09:00:00 +11:00
|
|
|
- this.setSuffocating(!flag);
|
2021-01-29 20:00:43 +11:00
|
|
|
+ // CraftBukkit start
|
2021-11-22 09:00:00 +11:00
|
|
|
+ if (!flag ^ this.isSuffocating()) {
|
2021-07-03 09:36:51 +10:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callStriderTemperatureChangeEvent(this, !flag)) {
|
2021-11-22 09:00:00 +11:00
|
|
|
+ this.setSuffocating(!flag);
|
2021-07-03 09:36:51 +10:00
|
|
|
+ }
|
2021-01-29 20:00:43 +11:00
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
super.tick();
|
2021-11-22 09:00:00 +11:00
|
|
|
this.floatStrider();
|
|
|
|
this.checkInsideBlocks();
|