mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-24 00:11:37 +01:00
Fixed async chunk loading in 1.16
This commit is contained in:
parent
b7a09b76a2
commit
f8830771f6
@ -121,8 +121,12 @@ public class SkyBlock extends SongodaPlugin {
|
||||
if(paper = ServerProject.isServer(ServerProject.PAPER)){
|
||||
try {
|
||||
Bukkit.spigot().getClass().getMethod("getPaperConfig");
|
||||
paperAsync = ServerVersion.isServerVersionAtLeast(ServerVersion.V1_13) &&
|
||||
Bukkit.spigot().getPaperConfig().getBoolean("settings.async-chunks.enable", false);
|
||||
if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_16)) {
|
||||
paperAsync = true;
|
||||
} else {
|
||||
paperAsync = ServerVersion.isServerVersionAtLeast(ServerVersion.V1_13) &&
|
||||
Bukkit.spigot().getPaperConfig().getBoolean("settings.async-chunks.enable", false);
|
||||
}
|
||||
} catch (NoSuchMethodException ignored) {
|
||||
paperAsync = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user