Skip to content

Commit 83817d3

Browse files
committed
Fix /rsc command in 3D subclaims
1 parent ffa05a3 commit 83817d3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pom.xml

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

99
<groupId>com.griefprevention</groupId>
1010
<artifactId>GriefPrevention</artifactId>
11-
<version>17.1.8</version>
11+
<version>17.1.9</version>
1212

1313
<name>GriefPrevention</name>
1414
<description>The official self-service anti-griefing Bukkit plugin for Minecraft servers since 2011.</description>

src/main/java/me/ryanhamshire/GriefPrevention/Claim.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -647,13 +647,11 @@ && hasBypassPermission(player, permission))
647647
}
648648
}
649649

650-
// Permission inheritance for subdivisions.
651-
// First-child subdivisions (parent is top-level) inherit from parent; nested subdivisions do not.
652-
// For 3D: first-child always inherits; nested never inherits (runtime fix for any stale inheritNothing).
650+
// First-child subdivisions inherit from parent; nested subdivisions do not.
653651
if (this.parent != null)
654652
{
655653
boolean isFirstChild = this.parent.parent == null;
656-
boolean inheritsFromParent = isFirstChild && (!inheritNothing || this.is3D());
654+
boolean inheritsFromParent = isFirstChild && !inheritNothing;
657655
if (inheritsFromParent)
658656
{
659657
// Block inherited permission if explicitly denied here

0 commit comments

Comments
 (0)