Back to Java 16 for now

This commit is contained in:
William committed 2022-08-29 15:23:20 +01:00
1 parent bb42a4d106
commit 59679bba75
4 files changed
+6 -7

No files matched your search

+2 -1
View File
@@ -24,7 +24,8 @@ allprojects {
compileJava.options.encoding = 'UTF-8' compileJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'UTF-8' javadoc.options.encoding = 'UTF-8'
compileJava.options.release.set 17 compileJava.options.release.set 16
compileTestJava.options.release.set 17
repositories { repositories {
mavenLocal() mavenLocal()
+1 -1
View File
@@ -15,7 +15,7 @@ dependencies {
compileOnly 'net.william278:DesertWell:1.0' compileOnly 'net.william278:DesertWell:1.0'
compileOnly 'com.github.MilkBowl:VaultAPI:1.7.1' compileOnly 'com.github.MilkBowl:VaultAPI:1.7.1'
compileOnly 'us.dynmap:dynmap-api:3.1' compileOnly 'us.dynmap:dynmap-api:3.1'
compileOnly 'maven.modrinth:pl3xmap:1.19.2-217' //compileOnly 'maven.modrinth:pl3xmap:1.19.2-217'
testImplementation 'com.github.seeseemelk:MockBukkit-v1.19:2.117.1' testImplementation 'com.github.seeseemelk:MockBukkit-v1.19:2.117.1'
testImplementation 'de.themoep:minedown:1.7.1-SNAPSHOT' testImplementation 'de.themoep:minedown:1.7.1-SNAPSHOT'
@@ -1,7 +1,5 @@
package net.william278.huskhomes.hook; package net.william278.huskhomes.hook;
import net.pl3x.map.api.Key;
import net.pl3x.map.api.Pl3xMap;
import net.william278.huskhomes.HuskHomes; import net.william278.huskhomes.HuskHomes;
import net.william278.huskhomes.position.Home; import net.william278.huskhomes.position.Home;
import net.william278.huskhomes.position.Warp; import net.william278.huskhomes.position.Warp;
@@ -26,14 +24,14 @@ public class Pl3xMapHook extends MapHook {
@Override @Override
protected CompletableFuture<Void> initializeMap() { protected CompletableFuture<Void> initializeMap() {
return CompletableFuture.runAsync(() -> { return CompletableFuture.runAsync(() -> {
try { /*try {
Pl3xMap.api().getIconRegistry().register(new Key(PUBLIC_HOME_MARKER_IMAGE_NAME), ImageIO.read Pl3xMap.api().getIconRegistry().register(new Key(PUBLIC_HOME_MARKER_IMAGE_NAME), ImageIO.read
(Objects.requireNonNull(plugin.getResource("markers/16x/" + PUBLIC_HOME_MARKER_IMAGE_NAME + ".png")))); (Objects.requireNonNull(plugin.getResource("markers/16x/" + PUBLIC_HOME_MARKER_IMAGE_NAME + ".png"))));
Pl3xMap.api().getIconRegistry().register(new Key(PUBLIC_HOME_MARKER_IMAGE_NAME), ImageIO.read Pl3xMap.api().getIconRegistry().register(new Key(PUBLIC_HOME_MARKER_IMAGE_NAME), ImageIO.read
(Objects.requireNonNull(plugin.getResource("markers/16x/" + WARP_MARKER_IMAGE_NAME + ".png")))); (Objects.requireNonNull(plugin.getResource("markers/16x/" + WARP_MARKER_IMAGE_NAME + ".png"))));
} catch (IOException e) { } catch (IOException e) {
plugin.getLoggingAdapter().log(Level.SEVERE, "Failed to load marker image resources", e); plugin.getLoggingAdapter().log(Level.SEVERE, "Failed to load marker image resources", e);
} }*/
}); });
} }
+1 -1
View File
@@ -1,7 +1,7 @@
org.gradle.jvmargs='-Dfile.encoding=UTF-8' org.gradle.jvmargs='-Dfile.encoding=UTF-8'
org.gradle.daemon=true org.gradle.daemon=true
javaVersion=17 javaVersion=16
plugin_version=3.0 plugin_version=3.0
plugin_archive=huskhomes plugin_archive=huskhomes