mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2025-02-18 02:02:29 +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>
|
<dependency>
|
||||||
<groupId>io.papermc.paper</groupId>
|
<groupId>io.papermc.paper</groupId>
|
||||||
<artifactId>paper-api</artifactId>
|
<artifactId>paper-api</artifactId>
|
||||||
<version>1.21.3-R0.1-SNAPSHOT</version>
|
<version>1.21.1-R0.1-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -72,12 +72,7 @@ public final class HangingBreakListener extends Queue implements Listener {
|
|||||||
material = Material.PAINTING;
|
material = Material.PAINTING;
|
||||||
Painting painting = (Painting) entity;
|
Painting painting = (Painting) entity;
|
||||||
blockData = "FACING=" + painting.getFacing().name();
|
blockData = "FACING=" + painting.getFacing().name();
|
||||||
try {
|
itemData = Util.getArtId(painting.getArt().toString(), true);
|
||||||
itemData = Util.getArtId(painting.getArt().toString(), true);
|
|
||||||
}
|
|
||||||
catch (IncompatibleClassChangeError e) {
|
|
||||||
// 1.21.2+
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!event.isCancelled() && Config.getConfig(blockEvent.getWorld()).NATURAL_BREAK) {
|
if (!event.isCancelled() && Config.getConfig(blockEvent.getWorld()).NATURAL_BREAK) {
|
||||||
|
Loading…
Reference in New Issue
Block a user