fix: resolve event emitter not emitting because of missing call to setChanged
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user