diff --git a/patches/server/0364-Entity-Jump-API.patch b/patches/server/0364-Entity-Jump-API.patch index 8b13df52a..477b71d8a 100644 --- a/patches/server/0364-Entity-Jump-API.patch +++ b/patches/server/0364-Entity-Jump-API.patch @@ -33,6 +33,20 @@ index dbcf70dacf99b61c0147b43edd6a374b31809733..9c07e3f5554b3b9cf2a2c4d9239a7234 } } +diff --git a/src/main/java/net/minecraft/world/entity/monster/Ravager.java b/src/main/java/net/minecraft/world/entity/monster/Ravager.java +index f747aa85beab98fbecdbe15b188be6614478bac6..a0eee7dc73bd4a96d9a1aa9555093820c5f7c49c 100644 +--- a/src/main/java/net/minecraft/world/entity/monster/Ravager.java ++++ b/src/main/java/net/minecraft/world/entity/monster/Ravager.java +@@ -177,7 +177,9 @@ public class Ravager extends Raider { + } + + if (!flag && this.onGround) { ++ if (new com.destroystokyo.paper.event.entity.EntityJumpEvent(getBukkitLivingEntity()).callEvent()) { // Paper + this.jumpFromGround(); ++ } else { this.setJumping(false); } // Paper - setJumping(false) stops a potential loop + } + } + diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java index fb0e0c629d16bc97efc3e91f7ba6fe9e87fc950b..be1540b0a5f95f8a85f91d5fe398cd2cf8832ec4 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java