From 2a91330453222b89de3775ab73af38d1b514f517 Mon Sep 17 00:00:00 2001 From: Finn Date: Thu, 20 Apr 2023 12:16:17 +0200 Subject: [PATCH] fix build --- .../mods/lunar/ModSettingsAdapter.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/src/de/steamwar/bungeecore/listeners/mods/lunar/ModSettingsAdapter.java b/src/de/steamwar/bungeecore/listeners/mods/lunar/ModSettingsAdapter.java index 030ed05f..500bc469 100644 --- a/src/de/steamwar/bungeecore/listeners/mods/lunar/ModSettingsAdapter.java +++ b/src/de/steamwar/bungeecore/listeners/mods/lunar/ModSettingsAdapter.java @@ -37,28 +37,4 @@ public class ModSettingsAdapter implements JsonSerializer { object.add("properties", properties); return object; } - - private ModSettings.ModSetting deserializeModSetting(JsonObject object) { - JsonObject propertiesObject = object.get("properties").getAsJsonObject(); - Map properties = new HashMap<>(); - for (Map.Entry entry : propertiesObject.entrySet()) { - if (!entry.getValue().isJsonPrimitive()) { - continue; - } - JsonPrimitive primitive = entry.getValue().getAsJsonPrimitive(); - Object toSet; - if (primitive.isString()) { - toSet = primitive.getAsString(); - } else if (primitive.isNumber()) { - toSet = primitive.getAsNumber(); - } else if (primitive.isBoolean()) { - toSet = primitive.getAsBoolean(); - } else { - continue; - } - properties.put(entry.getKey(), toSet); - } - return new ModSettings.ModSetting(object.get("enabled").getAsBoolean(), properties); - } - }