|
|
|
@ -44,6 +44,7 @@ public abstract class Minion {
|
|
|
|
|
|
|
|
|
|
protected void findStand() {
|
|
|
|
|
if (this.stand != null) return;
|
|
|
|
|
this.location.getChunk().load();
|
|
|
|
|
this.location.getWorld().getNearbyEntities(this.location, 0.5, 0.5, 0.5).stream().filter(entity -> entity instanceof ArmorStand && !entity.getCustomName().isEmpty()).findFirst().ifPresent(entity -> {
|
|
|
|
|
this.stand = (ArmorStand) entity;
|
|
|
|
|
});
|
|
|
|
@ -248,7 +249,6 @@ public abstract class Minion {
|
|
|
|
|
toReturn = new BreederMinion(owner, ownerName, location, energy, level, linkedBlocks);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
toReturn.findStand();
|
|
|
|
|
return toReturn;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|