Fix loading on Java versions prior to 16

- Lazy workaround continuously JitPack outages
Dieser Commit ist enthalten in:
NotMyFault 2021-07-09 11:34:07 +02:00
Ursprung 457861b879
Commit dd082d4f39
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C
4 geänderte Dateien mit 6 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -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") {

Datei anzeigen

@ -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;

Datei anzeigen

@ -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;
}
}
*/