diff --git a/.gradle/7.2/executionHistory/executionHistory.bin b/.gradle/7.2/executionHistory/executionHistory.bin index 1d2e79e..3550d2b 100644 Binary files a/.gradle/7.2/executionHistory/executionHistory.bin and b/.gradle/7.2/executionHistory/executionHistory.bin differ diff --git a/.gradle/7.2/executionHistory/executionHistory.lock b/.gradle/7.2/executionHistory/executionHistory.lock index f8774c2..4d4d092 100644 Binary files a/.gradle/7.2/executionHistory/executionHistory.lock and b/.gradle/7.2/executionHistory/executionHistory.lock differ diff --git a/.gradle/7.2/fileHashes/fileHashes.bin b/.gradle/7.2/fileHashes/fileHashes.bin index a829360..d1f4b4a 100644 Binary files a/.gradle/7.2/fileHashes/fileHashes.bin and b/.gradle/7.2/fileHashes/fileHashes.bin differ diff --git a/.gradle/7.2/fileHashes/fileHashes.lock b/.gradle/7.2/fileHashes/fileHashes.lock index df4460f..83a5ae7 100644 Binary files a/.gradle/7.2/fileHashes/fileHashes.lock and b/.gradle/7.2/fileHashes/fileHashes.lock differ diff --git a/.gradle/7.2/fileHashes/resourceHashesCache.bin b/.gradle/7.2/fileHashes/resourceHashesCache.bin index 261ec38..a8c7f64 100644 Binary files a/.gradle/7.2/fileHashes/resourceHashesCache.bin and b/.gradle/7.2/fileHashes/resourceHashesCache.bin differ diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index a2198a0..e406953 100644 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/.gradle/buildOutputCleanup/outputFiles.bin b/.gradle/buildOutputCleanup/outputFiles.bin index 5409c84..67908d2 100644 Binary files a/.gradle/buildOutputCleanup/outputFiles.bin and b/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/build.gradle b/build.gradle index 23b9478..af239ab 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { } group 'org.mikeshafter' -version '1.18.1b4' +version '1.18.1r2' compileJava.options.encoding 'UTF-8' diff --git a/build/tmp/compileJava/previous-compilation-data.bin b/build/tmp/compileJava/previous-compilation-data.bin index f6b43f9..f05a912 100644 Binary files a/build/tmp/compileJava/previous-compilation-data.bin and b/build/tmp/compileJava/previous-compilation-data.bin differ diff --git a/src/main/java/mikeshafter/mikestcaddons/SignActionSwap.java b/src/main/java/mikeshafter/mikestcaddons/SignActionSwap.java index 5770835..2e53876 100644 --- a/src/main/java/mikeshafter/mikestcaddons/SignActionSwap.java +++ b/src/main/java/mikeshafter/mikestcaddons/SignActionSwap.java @@ -7,7 +7,6 @@ import com.bergerkiller.bukkit.tc.signactions.SignAction; import com.bergerkiller.bukkit.tc.signactions.SignActionType; import com.bergerkiller.bukkit.tc.utils.SignBuildOptions; -import org.bukkit.plugin.Plugin; import java.util.Set; @@ -25,8 +24,7 @@ private void swap(MinecartMember member) { Set attachments = fullConfig.getNode("attachments").getNodes(); if (attachments != null) { for (ConfigurationNode node : attachments) { - Plugin plugin = MikesTCAddons.getPlugin(MikesTCAddons.class); - plugin.getLogger().info("1 "+node.getHeader()); + ConfigurationNode attachment = member.getProperties().getModel().getConfig().getNode("attachments"); attachment.set(node.getPath(), swap(node)); fullConfig.set("attachments", attachment); @@ -47,10 +45,13 @@ private ConfigurationNode swap(ConfigurationNode attachmentNode) { if (animationNames.contains("door_R")) { for (String name : animationNames) { if (name.contains("door_R")) { +// Plugin plugin = MikesTCAddons.getPlugin(MikesTCAddons.class); +// plugin.getLogger().info(name); +// plugin.getLogger().info("door_L"+name.substring(6)); // set to new node animations.set("door_L"+name.substring(6), animations.getNode(name)); // remove - attachmentNode.remove(name); + animations.remove(name); attachmentNode.set("animations", animations); } } @@ -63,7 +64,7 @@ else if (animationNames.contains("door_L")) { // set to new node animations.set("door_R"+name.substring(6), animations.getNode(name)); // remove - attachmentNode.remove(name); + animations.remove(name); attachmentNode.set("animations", animations); } }