From 091e6eb6888b8825e8075cec32f6b026be20b36a Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Sun, 2 May 2021 02:58:02 +0200 Subject: [PATCH] fix: added entity to entityEvents as this is required for the SpawnEntityEvent --- .../uulm/teamname/marvelous/gamelibrary/events/EntityEvent.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/events/EntityEvent.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/events/EntityEvent.java index 94b1b29..f6e7dcb 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/events/EntityEvent.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/events/EntityEvent.java @@ -1,6 +1,7 @@ package uulm.teamname.marvelous.gamelibrary.events; import uulm.teamname.marvelous.gamelibrary.IntVector2; +import uulm.teamname.marvelous.gamelibrary.entities.Entity; import uulm.teamname.marvelous.gamelibrary.entities.EntityID; import java.util.Objects; @@ -10,6 +11,7 @@ public class EntityEvent extends Event { public EntityID targetEntity = null; public IntVector2 targetField = null; public Integer amount = null; + public Entity entity = null; public EntityEvent setTargetEntity(EntityID targetEntity) { this.targetEntity = targetEntity;