mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
17 lines
703 B
Diff
17 lines
703 B
Diff
|
--- a/net/minecraft/server/EntityStrider.java
|
||
|
+++ b/net/minecraft/server/EntityStrider.java
|
||
|
@@ -252,7 +252,12 @@
|
||
|
IBlockData iblockdata1 = this.aN();
|
||
|
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()) {
|
||
|
+ org.bukkit.craftbukkit.event.CraftEventFactory.callStriderTemperatureChangeEvent(this, !flag);
|
||
|
+ this.setShivering(!flag);
|
||
|
+ }
|
||
|
+ // CraftBukkit end
|
||
|
super.tick();
|
||
|
this.eU();
|
||
|
this.checkBlockCollisions();
|