mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
df5cb9bc3a
By: Parker Hawke <hawkeboyz2@hotmail.com>
19 lines
1.2 KiB
Diff
19 lines
1.2 KiB
Diff
--- a/net/minecraft/world/entity/monster/EntityGuardian.java
|
|
+++ b/net/minecraft/world/entity/monster/EntityGuardian.java
|
|
@@ -62,6 +62,7 @@
|
|
private boolean clientSideTouchedGround;
|
|
@Nullable
|
|
public PathfinderGoalRandomStroll randomStrollGoal;
|
|
+ public EntityGuardian.PathfinderGoalGuardianAttack guardianAttackGoal; // CraftBukkit - add field
|
|
|
|
public EntityGuardian(EntityTypes<? extends EntityGuardian> entitytypes, World world) {
|
|
super(entitytypes, world);
|
|
@@ -77,7 +78,7 @@
|
|
PathfinderGoalMoveTowardsRestriction pathfindergoalmovetowardsrestriction = new PathfinderGoalMoveTowardsRestriction(this, 1.0D);
|
|
|
|
this.randomStrollGoal = new PathfinderGoalRandomStroll(this, 1.0D, 80);
|
|
- this.goalSelector.addGoal(4, new EntityGuardian.PathfinderGoalGuardianAttack(this));
|
|
+ this.goalSelector.addGoal(4, guardianAttackGoal = new EntityGuardian.PathfinderGoalGuardianAttack(this)); // CraftBukkit - assign field
|
|
this.goalSelector.addGoal(5, pathfindergoalmovetowardsrestriction);
|
|
this.goalSelector.addGoal(7, this.randomStrollGoal);
|
|
this.goalSelector.addGoal(8, new PathfinderGoalLookAtPlayer(this, EntityHuman.class, 8.0F));
|