mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08: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)
|
||||
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());
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue