mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 17:51:31 +01:00
e8c9836ec9
By: md_5 <git@md-5.net>
18 lines
756 B
Diff
18 lines
756 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.aU();
|
|
boolean flag = iblockdata.a((Tag) TagsBlock.STRIDER_WARM_BLOCKS) || iblockdata1.a((Tag) TagsBlock.STRIDER_WARM_BLOCKS) || this.b((Tag) TagsFluid.LAVA) > 0.0D;
|
|
|
|
- this.setShivering(!flag);
|
|
+ // CraftBukkit start
|
|
+ if (!flag ^ this.isShivering()) {
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callStriderTemperatureChangeEvent(this, !flag)) {
|
|
+ this.setShivering(!flag);
|
|
+ }
|
|
+ }
|
|
+ // CraftBukkit end
|
|
super.tick();
|
|
this.fE();
|
|
this.checkBlockCollisions();
|