diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/luxons/sevenwonders/game/data/serializers/ProductionIncreaseSerializer.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/luxons/sevenwonders/game/data/serializers/ProductionIncreaseSerializer.java b/src/main/java/org/luxons/sevenwonders/game/data/serializers/ProductionIncreaseSerializer.java index a0dee138..6c70a44d 100644 --- a/src/main/java/org/luxons/sevenwonders/game/data/serializers/ProductionIncreaseSerializer.java +++ b/src/main/java/org/luxons/sevenwonders/game/data/serializers/ProductionIncreaseSerializer.java @@ -15,7 +15,6 @@ import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonNull; import com.google.gson.JsonParseException; -import com.google.gson.JsonPrimitive; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializer; @@ -52,7 +51,7 @@ public class ProductionIncreaseSerializer implements JsonSerializer<ProductionIn .map(ResourceType::getSymbol) .map(Object::toString) .collect(Collectors.joining("/")); - return new JsonPrimitive(str); + return context.serialize(str); } @Override |