Fix for loading worlds.

This commit is contained in:
Brianna 2019-06-15 01:36:03 -04:00
parent d48b3fd4ee
commit 0d4441e233

View File

@ -150,6 +150,7 @@ public class UltimateKits extends JavaPlugin {
* Load configuration files into memory.
*/
private void loadFromFile() {
Bukkit.getScheduler().runTaskLater(this, () -> {
//Empty kits from manager.
kitManager.clearKits();
@ -196,7 +197,8 @@ public class UltimateKits extends JavaPlugin {
boolean itemOverride = dataFile.getConfig().getBoolean("BlockData." + key + ".itemOverride");
if (kit == null) dataFile.getConfig().set("BlockData." + key, null);
else kitManager.addKitToLocation(kit, location, type, holograms, particles, displayItems, itemOverride);
else
kitManager.addKitToLocation(kit, location, type, holograms, particles, displayItems, itemOverride);
}
}
@ -222,6 +224,7 @@ public class UltimateKits extends JavaPlugin {
if (hologram != null)
hologram.loadHolograms();
}, 10);
}
public ServerVersion getServerVersion() {