mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
This changes input back to single-threaded model.
This commit is contained in:
@@ -162,10 +162,12 @@ public class MatchController {
|
||||
|
||||
getInput().clearInput();
|
||||
getInput().resetInput();
|
||||
getInput().setNewInput(currentGame);
|
||||
|
||||
Thread thGame = new GameInputUpdatesThread(this, currentGame);
|
||||
thGame.setName("Game input updater");
|
||||
thGame.start();
|
||||
|
||||
// Thread thGame = new GameInputUpdatesThread(this, currentGame);
|
||||
// thGame.setName("Game input updater");
|
||||
// thGame.start();
|
||||
|
||||
// TODO restore this functionality!!!
|
||||
//VMatchUI.SINGLETON_INSTANCE.getViewDevMode().getDocument().setVisible(Preferences.DEV_MODE);
|
||||
|
||||
@@ -21,6 +21,7 @@ import java.util.Observable;
|
||||
import java.util.Observer;
|
||||
|
||||
import forge.Card;
|
||||
import forge.Singletons;
|
||||
import forge.control.input.Input;
|
||||
import forge.game.player.Player;
|
||||
import forge.game.zone.PlayerZone;
|
||||
@@ -44,6 +45,8 @@ public class InputProxy implements Observer {
|
||||
public final synchronized void update(final Observable observable, final Object obj) {
|
||||
ButtonUtil.disableAll();
|
||||
valid = false;
|
||||
|
||||
Singletons.getModel().getMatch().getInput().setNewInput(Singletons.getModel().getGame());
|
||||
}
|
||||
/**
|
||||
* <p>
|
||||
|
||||
Reference in New Issue
Block a user