fix: added entity to entityEvents as this is required for the SpawnEntityEvent
This commit is contained in:
		@ -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;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user