From d2bed837672c0d067b3087f210349a67c7f1783c Mon Sep 17 00:00:00 2001 From: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com> Date: Wed, 20 Jul 2022 18:17:42 +0200 Subject: [PATCH] Call jump event for the beast (#8100) --- patches/server/Entity-Jump-API.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/patches/server/Entity-Jump-API.patch b/patches/server/Entity-Jump-API.patch index c6afefff57..a45c7289b6 100644 --- a/patches/server/Entity-Jump-API.patch +++ b/patches/server/Entity-Jump-API.patch @@ -33,6 +33,20 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 } } +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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/world/entity/monster/Ravager.java ++++ b/src/main/java/net/minecraft/world/entity/monster/Ravager.java +@@ -0,0 +0,0 @@ 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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java