mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-12-01 06:53:26 +01:00
Add system property to bypass Paper async chunks check
This commit is contained in:
parent
4e7ccef5be
commit
93c786301a
@ -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")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user