From 72cec32253a29dad366d7490d13a60d471d2566a Mon Sep 17 00:00:00 2001 From: punchready Date: Tue, 18 May 2021 17:24:07 +0200 Subject: [PATCH] fix: make EventObserver use an array of events --- .../marvelous/gamelibrary/gamelogic/EventObserver.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/EventObserver.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/EventObserver.java index 369c972..0686e25 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/EventObserver.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/EventObserver.java @@ -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) { } }