diff --git a/pom.xml b/pom.xml index d8d0b8ad..13896ad0 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 be041a9e..93bf7b4c 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 @@ else if (cause.equals(HangingBreakEvent.RemoveCause.OBSTRUCTION)) { 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) {