We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2780a9a commit 9958d37Copy full SHA for 9958d37
src/main/java/net/coreprotect/listener/entity/HangingBreakListener.java
@@ -72,7 +72,12 @@ else if (cause.equals(HangingBreakEvent.RemoveCause.OBSTRUCTION)) {
72
material = Material.PAINTING;
73
Painting painting = (Painting) entity;
74
blockData = "FACING=" + painting.getFacing().name();
75
- itemData = Util.getArtId(painting.getArt().toString(), true);
+ try {
76
+ itemData = Util.getArtId(painting.getArt().toString(), true);
77
+ }
78
+ catch (IncompatibleClassChangeError e) {
79
+ // 1.21.2+
80
81
}
82
83
if (!event.isCancelled() && Config.getConfig(blockEvent.getWorld()).NATURAL_BREAK) {
0 commit comments