This commit is contained in:
parent
c7b361b5c0
commit
2d25a6a1a5
@ -198,7 +198,7 @@ public class HerobrineEntity extends LivingEntity implements Monster {
|
|||||||
reset = true;
|
reset = true;
|
||||||
List<? extends PlayerEntity> players = getEntityWorld().getPlayers();
|
List<? extends PlayerEntity> players = getEntityWorld().getPlayers();
|
||||||
Collections.shuffle(players);
|
Collections.shuffle(players);
|
||||||
PlayerentityPlayerentity nearest = getNearestPlayer();
|
PlayerEntity nearest = getNearestPlayer();
|
||||||
if (players.size() > 0 || nearest == null || nearest.distanceTo(this) >= HardcodedConfig.HEROBRINE_MAX_DISTANCE) {
|
if (players.size() > 0 || nearest == null || nearest.distanceTo(this) >= HardcodedConfig.HEROBRINE_MAX_DISTANCE) {
|
||||||
for (PlayerEntity player : players) {
|
for (PlayerEntity player : players) {
|
||||||
if (player.isAlive()) {
|
if (player.isAlive()) {
|
||||||
|
Reference in New Issue
Block a user