master
loganb1max 2020-01-09 00:00:57 +07:00
parent c621a0ed07
commit ff5a40ba4d
1 changed files with 1 additions and 1 deletions

@ -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;
}