From 47f49371853a5efe19d7470f75e17cc08b9155f4 Mon Sep 17 00:00:00 2001 From: ToonyStank Date: Sun, 12 Dec 2021 18:14:37 +0530 Subject: [PATCH] Release 1.2.0.12121813 --- pom.xml | 4 ++-- .../java/com/toonystank/armorswap/Events/clickEvents.java | 2 +- src/main/resources/plugin.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 66cfcfb..d65ce7a 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.toonystank ArmorSwap - 1.1.2.1105809 + 1.2.0.12121813 jar ArmorSwap @@ -69,7 +69,7 @@ org.spigotmc spigot-api - 1.17.1-R0.1-SNAPSHOT + 1.17-R0.1-SNAPSHOT provided diff --git a/src/main/java/com/toonystank/armorswap/Events/clickEvents.java b/src/main/java/com/toonystank/armorswap/Events/clickEvents.java index b4d9b8c..a99ce9f 100644 --- a/src/main/java/com/toonystank/armorswap/Events/clickEvents.java +++ b/src/main/java/com/toonystank/armorswap/Events/clickEvents.java @@ -44,7 +44,7 @@ public void onArmorStandRightClickEvent(PlayerInteractAtEntityEvent event) { event.setCancelled(true); ArmorStand stand = (ArmorStand) entity; - if (stand.isInvisible()) return; + if (!stand.isVisible()) return; // armor stand set armor if (CanMove(playerTool(player, getType.boots))) { diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 42b53fb..23e7006 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,7 +1,7 @@ name: ArmorSwap version: '${project.version}' main: com.toonystank.armorswap.ArmorSwap -api-version: 1.17 +api-version: 1.8 authors: [ Edward ] description: Simple Armorswap plugin. Swap armor by right clicking (This is a test project) website: https://taggernation.com