mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Code cleanup
This commit is contained in:
@@ -130,11 +130,9 @@ public class PlayerControllerHuman extends PlayerController {
|
||||
|
||||
List<PaperCard> newMain = null;
|
||||
|
||||
if (sbSize == 0 && mainSize == deckMinSize) {
|
||||
// Skip sideboard loop if there are no sideboarding opportunities
|
||||
return null;
|
||||
}
|
||||
else {
|
||||
//Skip sideboard loop if there are no sideboarding opportunities
|
||||
if (sbSize == 0 && mainSize == deckMinSize) { return null; }
|
||||
|
||||
// conformance should not be checked here
|
||||
boolean conform = FModel.getPreferences().getPrefBoolean(FPref.ENFORCE_DECK_LEGALITY);
|
||||
do {
|
||||
@@ -152,7 +150,7 @@ public class PlayerControllerHuman extends PlayerController {
|
||||
// No longer need 1:1 sideboarding in non-limited formats
|
||||
newMain = GuiBase.getInterface().sideboard(sideboard, main);
|
||||
} while (conform && (newMain.size() < deckMinSize || combinedDeckSize - newMain.size() > sbMax));
|
||||
}
|
||||
|
||||
return newMain;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user