Skip to content

Commit a3b2cb1

Browse files
authored
Fix zombie fly when trampling after cancelling EntityInteractEvent (#14225)
1 parent a2a42c5 commit a3b2cb1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

paper-server/patches/sources/net/minecraft/world/entity/ai/goal/RemoveBlockGoal.java.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
--- a/net/minecraft/world/entity/ai/goal/RemoveBlockGoal.java
22
+++ b/net/minecraft/world/entity/ai/goal/RemoveBlockGoal.java
3-
@@ -101,6 +_,11 @@
3+
@@ -101,6 +_,12 @@
44
}
55

66
if (this.ticksSinceReachedGoal > 60) {
77
+ // CraftBukkit start - Step on eggs
88
+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.callEntityInteractEvent(this.removerMob, org.bukkit.craftbukkit.block.CraftBlock.at(level, eatPos))) {
9+
+ this.ticksSinceReachedGoal++;
910
+ return;
1011
+ }
1112
+ // CraftBukkit end

0 commit comments

Comments
 (0)