From 837df0ee3d38ad1a4419d419791e26a8e4e88538 Mon Sep 17 00:00:00 2001 From: TylerS1066 Date: Sat, 7 Sep 2024 14:04:34 -0500 Subject: [PATCH] Update for 1.20.6 --- build.gradle.kts | 6 +++--- .../io/github/eirikh1996/structureboxes/StructureBoxes.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 05e7bdc..158980b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -16,16 +16,16 @@ repositories { dependencies { api("org.jetbrains:annotations-java5:24.1.0") - compileOnly("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT") + compileOnly("io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT") api("com.sk89q.worldedit:worldedit-core:7.2.9") api("com.sk89q.worldguard:worldguard-bukkit:7.0.7") compileOnly("net.countercraft:movecraft:+") } group = "io.github.eirikh1996" -version = "4.0.0_beta-2_dev-1" +version = "4.0.0_beta-2_dev-2" description = "StructureBoxes" -java.toolchain.languageVersion = JavaLanguageVersion.of(17) +java.toolchain.languageVersion = JavaLanguageVersion.of(21) tasks.jar { archiveBaseName.set("StructureBoxes") diff --git a/src/main/java/io/github/eirikh1996/structureboxes/StructureBoxes.java b/src/main/java/io/github/eirikh1996/structureboxes/StructureBoxes.java index 022f8ed..08b0b46 100644 --- a/src/main/java/io/github/eirikh1996/structureboxes/StructureBoxes.java +++ b/src/main/java/io/github/eirikh1996/structureboxes/StructureBoxes.java @@ -93,7 +93,7 @@ public void onEnable() { final Map data; try { - File weConfig = new File(getWorldEditPlugin().getDataFolder(), "config" + (Settings.FAWE ? "-legacy" : "") + ".yml"); + File weConfig = new File(getWorldEditPlugin().getDataFolder(), (Settings.FAWE ? "worldedit-" : "") + "config" + ".yml"); Yaml yaml = new Yaml(); data = yaml.load(new FileInputStream(weConfig)); } catch (IOException e){ @@ -253,7 +253,7 @@ public boolean isFreeSpace(UUID playerID, String schematicName, Collection