From 1bd3cdf63ffdfed61d693276d349862c69644276 Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Sun, 2 May 2021 03:19:15 +0200 Subject: [PATCH] fix: rewrote CharacterEvent equals for nullability compatibility --- .../teamname/marvelous/gamelibrary/events/CharacterEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/events/CharacterEvent.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/events/CharacterEvent.java index 6967975..0efc37c 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/events/CharacterEvent.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/events/CharacterEvent.java @@ -53,7 +53,7 @@ public class CharacterEvent extends Event { if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; CharacterEvent that = (CharacterEvent) o; - return Objects.equals(originEntity, that.originEntity) && Objects.equals(targetEntity, that.targetEntity) && Objects.equals(originField, that.originField) && Objects.equals(targetField, that.targetField) && Objects.equals(amount, that.amount) && stoneType == that.stoneType; + return Objects.equals(originEntity, that.originEntity) && Objects.equals(targetEntity, that.targetEntity) && Objects.equals(originField, that.originField) && Objects.equals(targetField, that.targetField) && Objects.equals(amount, that.amount) && Objects.equals(stoneType, that.stoneType); } @Override