Add system property to bypass Paper async chunks check

This commit is contained in:
Daniel Saukel 2020-04-07 02:22:31 +02:00
parent 4e7ccef5be
commit 93c786301a

View File

@ -207,7 +207,7 @@ public class DungeonsXL extends DREPlugin implements DungeonsAPI {
@Override @Override
public void onEnable() { public void onEnable() {
super.onEnable(); super.onEnable();
if (compat.isPaper() && Internals.andHigher(Internals.v1_14_R1).contains(compat.getInternals())) { if (compat.isPaper() && Internals.andHigher(Internals.v1_14_R1).contains(compat.getInternals()) && System.getProperty("XLDevMode") == null) {
File paperFile = new File("paper.yml"); File paperFile = new File("paper.yml");
FileConfiguration paperConfig = YamlConfiguration.loadConfiguration(paperFile); FileConfiguration paperConfig = YamlConfiguration.loadConfiguration(paperFile);
if (paperConfig.getBoolean("settings.async-chunks.enable")) { if (paperConfig.getBoolean("settings.async-chunks.enable")) {