From 65705508c5265f5e1bed12ece342a15bb2af8ded Mon Sep 17 00:00:00 2001 From: Intelli Date: Tue, 5 Nov 2024 11:56:57 -0700 Subject: [PATCH] Build against 1.21.1 to resolve IncompatibleClassChangeError (upstream issue) --- pom.xml | 2 +- .../coreprotect/listener/entity/HangingBreakListener.java | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index d8d0b8a..13896ad 100755 --- a/pom.xml +++ b/pom.xml @@ -124,7 +124,7 @@ io.papermc.paper paper-api - 1.21.3-R0.1-SNAPSHOT + 1.21.1-R0.1-SNAPSHOT provided diff --git a/src/main/java/net/coreprotect/listener/entity/HangingBreakListener.java b/src/main/java/net/coreprotect/listener/entity/HangingBreakListener.java index be041a9..93bf7b4 100644 --- a/src/main/java/net/coreprotect/listener/entity/HangingBreakListener.java +++ b/src/main/java/net/coreprotect/listener/entity/HangingBreakListener.java @@ -72,12 +72,7 @@ public final class HangingBreakListener extends Queue implements Listener { material = Material.PAINTING; Painting painting = (Painting) entity; blockData = "FACING=" + painting.getFacing().name(); - try { - itemData = Util.getArtId(painting.getArt().toString(), true); - } - catch (IncompatibleClassChangeError e) { - // 1.21.2+ - } + itemData = Util.getArtId(painting.getArt().toString(), true); } if (!event.isCancelled() && Config.getConfig(blockEvent.getWorld()).NATURAL_BREAK) {