mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-24 12:16:36 +01:00
Build against 1.21.1 to resolve IncompatibleClassChangeError (upstream issue)
This commit is contained in:
parent
2654562585
commit
65705508c5
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -72,12 +72,7 @@ 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+
|
||||
}
|
||||
itemData = Util.getArtId(painting.getArt().toString(), true);
|
||||
}
|
||||
|
||||
if (!event.isCancelled() && Config.getConfig(blockEvent.getWorld()).NATURAL_BREAK) {
|
||||
|
Loading…
Reference in New Issue
Block a user