mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 06:38:56 +00:00
Fix Async Load Exception on 1.12 and lower
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user