Fix Syntax
Herobrine-Rewoven/pipeline/head This commit looks good Details

This commit is contained in:
TheBrokenRail 2020-10-31 20:09:10 +00:00
parent c7b361b5c0
commit 2d25a6a1a5
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ public class HerobrineEntity extends LivingEntity implements Monster {
reset = true;
List<? extends PlayerEntity> players = getEntityWorld().getPlayers();
Collections.shuffle(players);
PlayerentityPlayerentity nearest = getNearestPlayer();
PlayerEntity nearest = getNearestPlayer();
if (players.size() > 0 || nearest == null || nearest.distanceTo(this) >= HardcodedConfig.HEROBRINE_MAX_DISTANCE) {
for (PlayerEntity player : players) {
if (player.isAlive()) {