From 38d918523201739af405d8615afff2b8023104f4 Mon Sep 17 00:00:00 2001 From: PiggyPiglet Date: Thu, 26 Mar 2020 11:25:02 +0800 Subject: [PATCH] made it compile --- .../placeholderapi/expansion/cloud/ExpansionCloudManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/clip/placeholderapi/expansion/cloud/ExpansionCloudManager.java b/src/main/java/me/clip/placeholderapi/expansion/cloud/ExpansionCloudManager.java index fd60457..0cc687d 100644 --- a/src/main/java/me/clip/placeholderapi/expansion/cloud/ExpansionCloudManager.java +++ b/src/main/java/me/clip/placeholderapi/expansion/cloud/ExpansionCloudManager.java @@ -164,10 +164,10 @@ public class ExpansionCloudManager { plugin.getLogger().info("Fetching available expansion information..."); plugin.getServer().getScheduler().runTaskAsynchronously(plugin, () -> { - final Map data; + final Map data = new HashMap<>();; try (BufferedReader reader = new BufferedReader(new InputStreamReader(new URL(API_URL).openStream()))) { - data = GSON.fromJson(reader, new TypeToken>() {}.getType()); + data.putAll(GSON.fromJson(reader, new TypeToken>() {}.getType())); } catch (Exception ex) { ex.printStackTrace(); }