mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-14 22:34:35 +01:00
Prevent lineups from being changed when the player is using an extra lineup
(Using correct function this time)
This commit is contained in:
@@ -200,8 +200,8 @@ public class LineupManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean switchLineup(int index) {
|
public boolean switchLineup(int index) {
|
||||||
// Sanity
|
// Sanity + Prevent lineups from being changed when the player is using an extra lineup
|
||||||
if (index == this.getCurrentIndex()) {
|
if (index == this.getCurrentIndex() || this.currentExtraLineup > 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user