Fix loading on Java versions prior to 16

- Lazy workaround continuously JitPack outages
This commit is contained in:
NotMyFault 2021-07-09 11:34:07 +02:00
parent 457861b879
commit dd082d4f39
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C
4 changed files with 6 additions and 3 deletions

View File

@ -102,7 +102,7 @@ dependencies {
// Third party
implementation("org.bstats:bstats-bukkit:2.2.1")
implementation("org.bstats:bstats-base:2.2.1")
compileOnlyApi("org.inventivetalent:mapmanager:1.7.10-SNAPSHOT") { isTransitive = false }
// compileOnlyApi("org.inventivetalent:mapmanager:1.7.10-SNAPSHOT") { isTransitive = false }
implementation("com.github.TechFortress:GriefPrevention:16.17.1") { isTransitive = false }
implementation("com.github.bloodmc:GriefDefenderApi:920a610") { isTransitive = false }
implementation("com.flowpowered:flow-math:1.0.3") {

View File

@ -19,7 +19,7 @@ import com.fastasyncworldedit.bukkit.regions.Worldguard;
import com.fastasyncworldedit.bukkit.util.BukkitTaskManager;
import com.fastasyncworldedit.bukkit.util.ItemUtil;
import com.fastasyncworldedit.bukkit.util.MinecraftVersion;
import com.fastasyncworldedit.bukkit.util.image.BukkitImageViewer;
//import com.fastasyncworldedit.bukkit.util.image.BukkitImageViewer;
import com.fastasyncworldedit.core.configuration.Settings;
import com.fastasyncworldedit.core.regions.FaweMaskManager;
import com.fastasyncworldedit.core.util.ThirdPartyManager;
@ -126,7 +126,7 @@ public class FaweBukkit implements IFawe, Listener {
fos.write(jarData);
}
}
return new BukkitImageViewer(BukkitAdapter.adapt(player));
// return new BukkitImageViewer(BukkitAdapter.adapt(player));
} catch (Throwable ignored) {
}
return null;

View File

@ -1,3 +1,4 @@
/*
package com.fastasyncworldedit.bukkit.util.image;
import com.fastasyncworldedit.core.util.image.Drawable;
@ -200,3 +201,5 @@ public class BukkitImageViewer implements ImageViewer {
last = null;
}
}
*/