mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-14 06:14:45 +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) {
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user