VMatchUI - singletons break multiplayer
The named classes contain hardcoded data about players.
Doublestrike, please change the needed classes so that they are not singletons any more.
Similiar hardcode is found in forge.gui.match.controllers.CPlayers.update()
- Code: Select all
// Instantiate non-singleton tab instances
private final IVDoc field0 = new VField(EDocID.FIELD_0, AllZone.getComputerPlayer());
private final IVDoc field1 = new VField(EDocID.FIELD_1, AllZone.getHumanPlayer());
private final IVDoc hand0 = new VHand(EDocID.HAND_0, AllZone.getComputerPlayer());
private final IVDoc hand1 = new VHand(EDocID.HAND_1, AllZone.getHumanPlayer());
Doublestrike, please change the needed classes so that they are not singletons any more.
Similiar hardcode is found in forge.gui.match.controllers.CPlayers.update()