From 6dcb243c1f33188711b6c44bf6d1bdd0a1e954fa Mon Sep 17 00:00:00 2001 From: Chaos Date: Tue, 22 Mar 2022 20:02:10 +0100 Subject: [PATCH 1/3] fix(schematic_selector): Fix Player Head in 1.12 Signed-off-by: Chaos --- .../src/de/steamwar/inventory/SchematicSelector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/inventory/SchematicSelector.java b/SpigotCore_Main/src/de/steamwar/inventory/SchematicSelector.java index 1d40716..0f6ba59 100644 --- a/SpigotCore_Main/src/de/steamwar/inventory/SchematicSelector.java +++ b/SpigotCore_Main/src/de/steamwar/inventory/SchematicSelector.java @@ -293,7 +293,7 @@ public class SchematicSelector { openFilter(); } else { SWAnvilInv swAnvilInv = new SWAnvilInv(player, Core.MESSAGE.parse("SCHEM_SELECTOR_FILTER_ENTER_OWNER", player)); - swAnvilInv.setItem(Material.PLAYER_HEAD); + swAnvilInv.setItem(SWItem.getMaterial("SKULL_ITEM"), (byte) 3); swAnvilInv.setCallback(s -> { if(SteamwarUser.get(s) != null) { filter.setOwner(SteamwarUser.get(s).getId()); From c8c9bb96eebc714e55d60865d5993ad889798215 Mon Sep 17 00:00:00 2001 From: Chaos Date: Fri, 25 Mar 2022 20:51:36 +0100 Subject: [PATCH 2/3] fix(schematic_selector): Fix Update item Signed-off-by: Chaos --- SpigotCore_Main/src/de/steamwar/sql/SchematicNode.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SpigotCore_Main/src/de/steamwar/sql/SchematicNode.java b/SpigotCore_Main/src/de/steamwar/sql/SchematicNode.java index e25b480..a18f87a 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SchematicNode.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SchematicNode.java @@ -316,6 +316,11 @@ public class SchematicNode { return rank; } + @Deprecated + public int getRankUnsafe() { + return rank; + } + public void setRank(int rank) { if(isDir) throw new SecurityException("Node is Directory"); From e50ca355479a8cac8e6c5d790f4fb498bb77a8c2 Mon Sep 17 00:00:00 2001 From: Chaos Date: Fri, 25 Mar 2022 21:04:30 +0100 Subject: [PATCH 3/3] fix(schematic_selector): Using the Fix Signed-off-by: Chaos --- SpigotCore_Main/src/de/steamwar/sql/SQLProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/sql/SQLProvider.java b/SpigotCore_Main/src/de/steamwar/sql/SQLProvider.java index f285afe..559bed8 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SQLProvider.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SQLProvider.java @@ -579,7 +579,7 @@ public class SQLProvider implements Provider { node.getParent(), node.getItem(), node.getType(), - node.getRank(), + node.getRankUnsafe(), node.replaceColor(), node.allowReplay(), node.getId()