mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Fix so each players opponents are cached in view
This commit is contained in:
@@ -190,6 +190,11 @@ public class MatchUtil {
|
||||
game.subscribeToEvents(playbackControl);
|
||||
}
|
||||
|
||||
//ensure opponents set properly
|
||||
for (Player p : sortedPlayers) {
|
||||
p.updateOpponentsForView();
|
||||
}
|
||||
|
||||
// It's important to run match in a different thread to allow GUI inputs to be invoked from inside game.
|
||||
// Game is set on pause while gui player takes decisions
|
||||
game.getAction().invoke(new Runnable() {
|
||||
|
||||
Reference in New Issue
Block a user