Skip to content

Commit 6c3556b

Browse files
committed
Fix lands owners not being able to use ST
1 parent 3411919 commit 6c3556b

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

dependency-reduced-pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.syntaxphoenix.spigot</groupId>
55
<artifactId>smoothtimber-legacy</artifactId>
66
<name>SmoothTimber</name>
7-
<version>1.27.1</version>
7+
<version>1.27.4</version>
88
<build>
99
<resources>
1010
<resource>
@@ -223,13 +223,13 @@
223223
<dependency>
224224
<groupId>org.spigotmc</groupId>
225225
<artifactId>spigot-api</artifactId>
226-
<version>1.20.1-R0.1-SNAPSHOT</version>
226+
<version>1.21.4-R0.1-SNAPSHOT</version>
227227
<scope>provided</scope>
228228
</dependency>
229229
<dependency>
230230
<groupId>dev.folia</groupId>
231231
<artifactId>folia-api</artifactId>
232-
<version>1.20.1-R0.1-SNAPSHOT</version>
232+
<version>1.21.4-R0.1-SNAPSHOT</version>
233233
<scope>provided</scope>
234234
</dependency>
235235
<dependency>
@@ -311,7 +311,7 @@
311311
<properties>
312312
<java.package.id>smoothtimber</java.package.id>
313313
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
314-
<server.version>1.20.1-R0.1-SNAPSHOT</server.version>
314+
<server.version>1.21.4-R0.1-SNAPSHOT</server.version>
315315
<project.roaster.version>2.28.0.Final</project.roaster.version>
316316
</properties>
317317
</project>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.syntaxphoenix.spigot</groupId>
77
<artifactId>smoothtimber-legacy</artifactId>
8-
<version>1.27.4</version>
8+
<version>1.27.5</version>
99
<name>SmoothTimber</name>
1010
<packaging>jar</packaging>
1111

src/main/java/com/syntaxphoenix/spigot/smoothtimber/compatibility/lands/LandsChopListener_v2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void onChopEvent(final AsyncPlayerChopTreeEvent event) {
3131
if (area == null) {
3232
continue;
3333
}
34-
if (area.hasRoleFlag(uuid, Flags.BLOCK_BREAK)) {
34+
if (uuid.equals(area.getOwnerUID()) || area.hasRoleFlag(uuid, Flags.BLOCK_BREAK)) {
3535
event.setCancelled(true);
3636
event.setReason(DefaultReason.LANDS);
3737
return;

src/main/java/com/syntaxphoenix/spigot/smoothtimber/version/changer/v1_21xChanger.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
@SupportedVersions({
2424
"1.21.3",
2525
"1.21.4",
26+
"1.21.5"
2627
})
2728
public final class v1_21xChanger implements VersionChanger {
2829

0 commit comments

Comments
 (0)