mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Pass priority will not lock input - bottomless vault no longer deadlocks
This commit is contained in:
@@ -18,7 +18,8 @@ public abstract class InputNonSyncBase extends InputBase {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
if( FThreads.isEDT() )
|
if( FThreads.isEDT() )
|
||||||
player.getGame().getInputQueue().LockAndInvokeGameAction(pass);
|
FThreads.invokeInNewThread(pass);
|
||||||
|
// player.getGame().getInputQueue().LockAndInvokeGameAction(pass);
|
||||||
else
|
else
|
||||||
pass.run();
|
pass.run();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,6 +53,8 @@ public class InputProxy implements Observer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final synchronized void update(final Observable observable, final Object obj) {
|
public final synchronized void update(final Observable observable, final Object obj) {
|
||||||
|
//synchronized(this) {} // want to update all changes to memory
|
||||||
|
|
||||||
final PhaseHandler ph = game.getPhaseHandler();
|
final PhaseHandler ph = game.getPhaseHandler();
|
||||||
|
|
||||||
if(INPUT_DEBUG)
|
if(INPUT_DEBUG)
|
||||||
|
|||||||
Reference in New Issue
Block a user