Skip to content

Commit dcf92f3

Browse files
committed
fix: save 3D claims after resize
- Add explicit saveClaim call for 3D claims in resizeClaim since setNewDepth is only called for 2D claims
1 parent d3b26d7 commit dcf92f3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pom.xml

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

55
<groupId>com.griefprevention</groupId>
66
<artifactId>GriefPrevention</artifactId>
7-
<version>17.0.11</version>
7+
<version>17.0.13</version>
88

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,6 +1540,9 @@ synchronized public CreateClaimResult resizeClaim(Claim claim, int newx1, int ne
15401540
// parent.
15411541
// Also saves affected claims.
15421542
setNewDepth(claim, claim.getLesserBoundaryCorner().getBlockY());
1543+
} else {
1544+
// 3D claims must be saved explicitly since setNewDepth is not called
1545+
this.saveClaim(claim);
15431546
}
15441547
result.claim = claim;
15451548
addToChunkClaimMap(claim); // add the new boundary to the chunk cache

0 commit comments

Comments
 (0)