From 57c27de0067e3d3091a66b881453bbfd862a1f52 Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Thu, 3 Jun 2021 21:37:11 +0200 Subject: [PATCH] fix: fixed wrong JSON key in EventDeserializer --- .../gamelibrary/json/ingame/deserialize/EventDeserializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/deserialize/EventDeserializer.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/deserialize/EventDeserializer.java index 9e464ca..d80b9ec 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/deserialize/EventDeserializer.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/deserialize/EventDeserializer.java @@ -73,7 +73,7 @@ public class EventDeserializer extends JsonDeserializer { 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))