Build against 1.21.1 to resolve IncompatibleClassChangeError (upstream issue)

This commit is contained in:
Intelli 2024-11-05 11:56:57 -07:00
parent 2654562585
commit 65705508c5
2 changed files with 2 additions and 7 deletions

View File

@ -124,7 +124,7 @@
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.21.3-R0.1-SNAPSHOT</version>
<version>1.21.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -72,13 +72,8 @@ 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+
}
}
if (!event.isCancelled() && Config.getConfig(blockEvent.getWorld()).NATURAL_BREAK) {
Queue.queueNaturalBlockBreak(causeName, blockEvent.getState(), attachedBlock, material, blockData, itemData);