diff --git a/src/main/java/net/coreprotect/listener/entity/HangingBreakListener.java b/src/main/java/net/coreprotect/listener/entity/HangingBreakListener.java index 93bf7b4c..be041a9e 100644 --- a/src/main/java/net/coreprotect/listener/entity/HangingBreakListener.java +++ b/src/main/java/net/coreprotect/listener/entity/HangingBreakListener.java @@ -72,7 +72,12 @@ else if (cause.equals(HangingBreakEvent.RemoveCause.OBSTRUCTION)) { material = Material.PAINTING; Painting painting = (Painting) entity; blockData = "FACING=" + painting.getFacing().name(); - itemData = Util.getArtId(painting.getArt().toString(), true); + try { + itemData = Util.getArtId(painting.getArt().toString(), true); + } + catch (IncompatibleClassChangeError e) { + // 1.21.2+ + } } if (!event.isCancelled() && Config.getConfig(blockEvent.getWorld()).NATURAL_BREAK) {