mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Merge fix
This commit is contained in:
parent
560b56a391
commit
96c84413df
1 changed files with 1 additions and 1 deletions
|
@ -1204,7 +1204,7 @@ public abstract class GameImpl implements Game, Serializable {
|
||||||
|
|
||||||
// runtime check - allows only GAME scope (one watcher per game)
|
// runtime check - allows only GAME scope (one watcher per game)
|
||||||
newWatchers.forEach(watcher -> {
|
newWatchers.forEach(watcher -> {
|
||||||
if (watcher.getScope().equals(WatcherScope.GAME)) {
|
if (!watcher.getScope().equals(WatcherScope.GAME)) {
|
||||||
throw new IllegalStateException("Game default watchers must have GAME scope: " + watcher.getClass().getCanonicalName());
|
throw new IllegalStateException("Game default watchers must have GAME scope: " + watcher.getClass().getCanonicalName());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue