fix: make EventObserver use an array of events

This commit is contained in:
punchready 2021-05-18 17:24:07 +02:00
parent 2aefddf979
commit 72cec32253
1 changed files with 3 additions and 3 deletions

View File

@ -9,14 +9,14 @@ import java.util.Observer;
public class EventObserver implements Observer {
@Override
public void update(Observable o, Object arg) {
handle((Event)arg);
handle((Event[])arg);
}
/**
* Gets called with incoming {@link Event}s. Override this method to handle events.
* @param event The event that got emitted
* @param event The events that got emitted
*/
protected void handle(Event event) {
protected void handle(Event[] event) {
}
}