nuke a few more obfhelpers
This commit is contained in:
@@ -54,21 +54,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
this.teleport();
|
||||
}
|
||||
|
||||
@@ -0,0 +0,0 @@ public class EnderMan extends Monster implements NeutralMob {
|
||||
|
||||
private static class EndermanLookForPlayerGoal extends NearestAttackableTargetGoal<Player> {
|
||||
|
||||
- private final EnderMan enderman;
|
||||
+ private final EnderMan enderman; public final EnderMan getEnderman() { return this.enderman; } // Paper - OBFHELPER
|
||||
private Player pendingTarget;
|
||||
private int aggroTime;
|
||||
private int teleportTime;
|
||||
@@ -0,0 +0,0 @@ public class EnderMan extends Monster implements NeutralMob {
|
||||
} else {
|
||||
if (this.target != null && !this.enderman.isPassenger()) {
|
||||
if (this.enderman.isLookingAtMe((Player) this.target)) {
|
||||
- if (this.target.distanceToSqr((Entity) this.enderman) < 16.0D) {
|
||||
+ if (this.target.distanceToSqr((Entity) this.enderman) < 16.0D && this.getEnderman().tryEscape(com.destroystokyo.paper.event.entity.EndermanEscapeEvent.Reason.STARE)) { // Paper
|
||||
+ if (this.target.distanceToSqr((Entity) this.enderman) < 16.0D && this.enderman.tryEscape(com.destroystokyo.paper.event.entity.EndermanEscapeEvent.Reason.STARE)) { // Paper
|
||||
this.enderman.teleport();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user