fix: rewrote CharacterEvent equals for nullability compatibility

This commit is contained in:
Yannik Bretschneider 2021-05-02 03:19:15 +02:00
parent 326c469e55
commit 1bd3cdf63f

View File

@ -53,7 +53,7 @@ public class CharacterEvent extends Event {
if (o == null || getClass() != o.getClass()) return false; if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false; if (!super.equals(o)) return false;
CharacterEvent that = (CharacterEvent) o; 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 @Override