forked from SteamWar/SteamWar
Fix SpecialItem.getRandomItem
This commit is contained in:
@@ -111,11 +111,11 @@ public abstract class SpecialItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static ItemStack getRandomItem() {
|
public static ItemStack getRandomItem() {
|
||||||
if (Config.MissileChance == 0 || consecutiveSupportItems > 1) {
|
if (Config.MissileChance == 0) {
|
||||||
consecutiveSupportItems = 0;
|
|
||||||
return supportItems.get(random.nextInt(supportItems.size())).getItem();
|
return supportItems.get(random.nextInt(supportItems.size())).getItem();
|
||||||
}
|
}
|
||||||
if (Config.MissileChance == 1) {
|
if (Config.MissileChance == 1 || consecutiveSupportItems > 1) {
|
||||||
|
consecutiveSupportItems = 0;
|
||||||
return missileItems.get(random.nextInt(missileItems.size())).getItem();
|
return missileItems.get(random.nextInt(missileItems.size())).getItem();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user