geforkt von Mirrors/Paper
Call jump event for the beast (#8100)
Dieser Commit ist enthalten in:
Ursprung
9026cda053
Commit
d2bed83767
@ -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
|
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
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren