2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/monster/EntityStrider.java
|
|
|
|
+++ b/net/minecraft/world/entity/monster/EntityStrider.java
|
2022-02-28 16:00:00 +01:00
|
|
|
@@ -320,7 +320,13 @@
|
2021-11-21 23:00:00 +01:00
|
|
|
IBlockData iblockdata1 = this.getBlockStateOn();
|
2022-02-28 16:00:00 +01:00
|
|
|
boolean flag = iblockdata.is(TagsBlock.STRIDER_WARM_BLOCKS) || iblockdata1.is(TagsBlock.STRIDER_WARM_BLOCKS) || this.getFluidHeight(TagsFluid.LAVA) > 0.0D;
|
2021-01-29 10:00:43 +01:00
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
- this.setSuffocating(!flag);
|
2021-01-29 10:00:43 +01:00
|
|
|
+ // CraftBukkit start
|
2021-11-21 23:00:00 +01:00
|
|
|
+ if (!flag ^ this.isSuffocating()) {
|
2021-07-03 01:36:51 +02:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callStriderTemperatureChangeEvent(this, !flag)) {
|
2021-11-21 23:00:00 +01:00
|
|
|
+ this.setSuffocating(!flag);
|
2021-07-03 01:36:51 +02:00
|
|
|
+ }
|
2021-01-29 10:00:43 +01:00
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
super.tick();
|
2021-11-21 23:00:00 +01:00
|
|
|
this.floatStrider();
|
|
|
|
this.checkInsideBlocks();
|