mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 16:56:31 +01:00
Re-add missing StriderTemperatureChangeEvent
By: md_5 <git@md-5.net>
This commit is contained in:
parent
022d868fa2
commit
540be51514
1 changed files with 16 additions and 0 deletions
16
paper-server/nms-patches/EntityStrider.patch
Normal file
16
paper-server/nms-patches/EntityStrider.patch
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
--- 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();
|
Loading…
Add table
Reference in a new issue