Skip to content

Commit

Permalink
Build against 1.21.1 to resolve IncompatibleClassChangeError (upstrea…
Browse files Browse the repository at this point in the history
…m issue)
  • Loading branch information
Intelli committed Nov 5, 2024
1 parent 2654562 commit 6570550
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6570550

Please sign in to comment.