Browse Source

Fix Syntax

master
TheBrokenRail 1 year ago
parent
commit
2d25a6a1a5
  1. 2
      src/main/java/com/thebrokenrail/herobrine/entity/HerobrineEntity.java

2
src/main/java/com/thebrokenrail/herobrine/entity/HerobrineEntity.java

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

Loading…
Cancel
Save