Prevent lineups from being changed when the player is using an extra lineup

(Using correct function this time)
This commit is contained in:
Melledy
2023-10-27 22:58:00 -07:00
parent 293df4bdae
commit 9ac8224d73

View File

@@ -200,8 +200,8 @@ public class LineupManager {
}
public boolean switchLineup(int index) {
// Sanity
if (index == this.getCurrentIndex()) {
// Sanity + Prevent lineups from being changed when the player is using an extra lineup
if (index == this.getCurrentIndex() || this.currentExtraLineup > 0) {
return false;
}