diff --git a/src/main/java/supercoder79/wavedefense/game/WdWaveManager.java b/src/main/java/supercoder79/wavedefense/game/WdWaveManager.java index bbe988e..a721e11 100644 --- a/src/main/java/supercoder79/wavedefense/game/WdWaveManager.java +++ b/src/main/java/supercoder79/wavedefense/game/WdWaveManager.java @@ -57,7 +57,7 @@ private void tickActive(long time, WdWave wave) { style.withColor(TextColor.parse("yellow")) )); - for (PlayerEntity player : players) { + for (PlayerEntity player : game.getParticipants()) { player.getInventory().insertStack(new ItemStack(Items.IRON_INGOT, survivalBonus)); player.getInventory().insertStack(new ItemStack(Items.GOLD_INGOT, survivalGold)); }