Fix Syntax
All checks were successful
Herobrine-Rewoven/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2020-10-31 20:09:10 +00:00
parent c7b361b5c0
commit 2d25a6a1a5

View File

@ -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()) {