Skip to content

Commit

Permalink
Prevent spectators from receiving wave survival bonuses (#17)
Browse files Browse the repository at this point in the history
Fixes #9
  • Loading branch information
haykam821 authored Oct 3, 2023
1 parent eb95126 commit 110e909
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 110e909

Please sign in to comment.