fix: resolve event emitter not emitting because of missing call to setChanged

This commit is contained in:
2021-05-03 20:19:17 +02:00
parent a5ccba0326
commit 9405b89fb3
5 changed files with 35 additions and 5 deletions

View File

@ -83,10 +83,10 @@ public class GameInstance {
}
/**
* Emits an array of {@link Event}s.
* Instructs the emitter to emit an array of {@link Event}s.
* @param events The events to emit
*/
private void emit(Event... events) {
emitter.notifyObservers(events);
emitter.update(events);
}
}