diff options
Diffstat (limited to 'patches/server/0191-Enderman.teleportRandomly.patch')
-rw-r--r-- | patches/server/0191-Enderman.teleportRandomly.patch | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/patches/server/0191-Enderman.teleportRandomly.patch b/patches/server/0191-Enderman.teleportRandomly.patch index 2c50d7e636..82b9e32359 100644 --- a/patches/server/0191-Enderman.teleportRandomly.patch +++ b/patches/server/0191-Enderman.teleportRandomly.patch @@ -5,19 +5,6 @@ Subject: [PATCH] Enderman.teleportRandomly() Ability to trigger the vanilla "teleport randomly" mechanic of an enderman. -diff --git a/src/main/java/net/minecraft/world/entity/monster/EnderMan.java b/src/main/java/net/minecraft/world/entity/monster/EnderMan.java -index 9df51c1108f4e9a3d8391783b7394286d6e1eb24..67dab95d562f4d1acc2a78bb9d45cba92cb6d38b 100644 ---- a/src/main/java/net/minecraft/world/entity/monster/EnderMan.java -+++ b/src/main/java/net/minecraft/world/entity/monster/EnderMan.java -@@ -287,7 +287,7 @@ public class EnderMan extends Monster implements NeutralMob { - super.customServerAiStep(); - } - -- protected boolean teleport() { -+ public boolean teleport() { // Paper - protected->public - if (!this.level().isClientSide() && this.isAlive()) { - double d0 = this.getX() + (this.random.nextDouble() - 0.5D) * 64.0D; - double d1 = this.getY() + (double) (this.random.nextInt(64) - 32); diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java index b72d7ade10075a13a617a370e2b8021326c9478d..ae669a970aa1f17ed786640de8a481364543c58e 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java |