Merge fix

This commit is contained in:
Oleg Agafonov 2021-07-24 16:23:26 +04:00
parent 560b56a391
commit 96c84413df

View file

@ -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());
} }
}); });