fix: fixed wrong JSON key in EventDeserializer

This commit is contained in:
Yannik Bretschneider 2021-06-03 21:37:11 +02:00
parent 173fc70c3b
commit 57c27de006

View File

@ -73,7 +73,7 @@ public class EventDeserializer extends JsonDeserializer<Event> {
builder.withTargetEntity(unwrap(node.get("targetEntity"), EntityID.class, codec))
.withTargetField(unwrap(node.get("targetField"), IntVector2.class, codec))
.withAmount(unwrap(node.get("targetField"), Integer.class, codec))
.withAmount(unwrap(node.get("amount"), Integer.class, codec))
.withEntity(unwrap(node.get("entity"), Entity.class, codec))
.withOriginEntity(unwrap(node.get("originEntity"), EntityID.class, codec))