Skip to content

Commit 11300cb

Browse files
authored
Merge pull request Ghost-chu#1546 from Ghost-chu/master
5.0.0.5
2 parents e761161 + bdfc22d commit 11300cb

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<artifactId>QuickShop</artifactId>
2626

2727
<properties>
28-
<pluginver>5.0.0.4</pluginver>
28+
<pluginver>5.0.0.5</pluginver>
2929
<package>org.maxgamer.quickshop</package>
3030
<developer>Ghost-chu</developer>
3131
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

src/main/java/org/maxgamer/quickshop/localization/text/SimpleTextManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ private void applyOverrideConfiguration(@NotNull JsonConfiguration distributionC
193193
if ("language-version".equals(key) || "config-version".equals(key) || "version".equals(key)) {
194194
continue;
195195
}
196-
distributionConfiguration.set(key, distributionConfiguration.get(key));
196+
Object content = overrideConfiguration.get(key);
197+
Util.debugLog("Override key " + key + " with content: " + content);
198+
distributionConfiguration.set(key, content);
197199
}
198200
}
199201

@@ -234,9 +236,7 @@ private JsonConfiguration getOverrideConfiguration(@NotNull String overrideFile,
234236
localOverrideFile.getParentFile().mkdirs();
235237
localOverrideFile.createNewFile();
236238
}
237-
JsonConfiguration configuration = new JsonConfiguration();
238-
configuration.loadFromString(Util.readToString(localOverrideFile));
239-
return configuration;
239+
return JsonConfiguration.loadConfiguration(localOverrideFile);
240240
}
241241

242242
/**

src/main/java/org/maxgamer/quickshop/shop/ShopLoader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ public void loadShops(@Nullable String worldName) {
160160
Bukkit.getScheduler().runTaskLater(plugin, () -> {
161161
this.plugin.getLogger().info("Loading the shops in worlds...");
162162
for (Shop shop : pendingLoadShops) {
163+
plugin.getShopManager().loadShop(shop.getLocation().getWorld().getName(), shop);
163164
shop.onLoad();
164165
shop.update();
165166
}

0 commit comments

Comments
 (0)