mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Moved observer attachment into CStack.java
This commit is contained in:
@@ -371,7 +371,6 @@ public enum FControl {
|
||||
|
||||
// models shall notify controllers of changes
|
||||
|
||||
game.getStack().addObserver(CStack.SINGLETON_INSTANCE);
|
||||
game.getGameLog().addObserver(CLog.SINGLETON_INSTANCE);
|
||||
// some observers were set in CMatchUI.initMatch
|
||||
|
||||
|
||||
@@ -64,6 +64,8 @@ public enum CStack implements ICDoc, Observer {
|
||||
public void setModel(MagicStack model, LobbyPlayer guiPlayer) {
|
||||
this.model = model;
|
||||
this.viewer = guiPlayer;
|
||||
|
||||
model.addObserver(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user