Fix Async Load Exception on 1.12 and lower

This commit is contained in:
Sn0wStorm
2020-04-12 18:06:03 +02:00
parent 0dd03133dc
commit ef868fc7eb
3 changed files with 53 additions and 36 deletions
@@ -58,6 +58,7 @@ public class BConfig {
// Barrel
public static boolean openEverywhere;
public static boolean loadDataAsync = true;
// Cauldron
public static boolean useOffhandForCauldron;
@@ -244,6 +245,11 @@ public class BConfig {
Brew.loadSeed(config, new File(P.p.getDataFolder(), "config.yml"));
if (!P.use1_13) {
// world.getBlockAt loads Chunks in 1.12 and lower. Can't load async
loadDataAsync = false;
}
PluginItem.registerForConfig("brewery", BreweryPluginItem::new);
PluginItem.registerForConfig("mmoitems", MMOItemsPluginItem::new);
PluginItem.registerForConfig("slimefun", SlimefunPluginItem::new);