Simplify ItemCountdown
Dieser Commit ist enthalten in:
Ursprung
d1461b5e8c
Commit
e3fce8fbf2
@ -47,9 +47,9 @@ public class ItemCountdown extends StateDependent {
|
||||
}
|
||||
|
||||
private void run(){
|
||||
int items = Math.max(MissileWars.getBlueTeam().size(), MissileWars.getRedTeam().size());
|
||||
int itemCount = Math.max(MissileWars.getBlueTeam().size(), MissileWars.getRedTeam().size());
|
||||
|
||||
for (int i = 0; i < items; i++) {
|
||||
for (int i = 0; i < itemCount; i++) {
|
||||
ItemStack itemStack = SpecialItem.getRandomItem();
|
||||
|
||||
MissileWars.getBlueTeam().givePlayerItem(itemStack);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren