Skip to content

Commit

Permalink
Update for 1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerS1066 committed Sep 7, 2024
1 parent d28d72c commit 837df0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down Expand Up @@ -253,7 +253,7 @@ public boolean isFreeSpace(UUID playerID, String schematicName, Collection<Locat
World world = getServer().getWorld(location.getWorld());
org.bukkit.Location bukkitLoc = new org.bukkit.Location(world, location.getX(), location.getY(), location.getZ());
if (Settings.Debug) {
world.spawnParticle(Particle.VILLAGER_ANGRY, bukkitLoc, 1);
world.spawnParticle(Particle.ANGRY_VILLAGER, bukkitLoc, 1);
}
Material test = bukkitLoc.getBlock().getType();
originalBlocks.put(location, test);
Expand Down

0 comments on commit 837df0e

Please sign in to comment.