Skip to content

Commit 7316b75

Browse files
tastybentoclaude
andcommitted
Version 1.1.0
Fix NPE in getBorderSize: task.cancel() was called unconditionally on the first shrink, but the field is only populated after the first gradual-reduction task is scheduled. Use the existing cancelBorderTask() helper, which null-guards. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9c77fcb commit 7316b75

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@
5757
<mock-bukkit.version>v1.21-SNAPSHOT</mock-bukkit.version>
5858
<!-- More visible way how to change dependency versions -->
5959
<paper.version>1.21.10-R0.1-SNAPSHOT</paper.version>
60-
<bentobox.version>3.10.0-SNAPSHOT</bentobox.version>
60+
<bentobox.version>3.11.1</bentobox.version>
6161
<!-- Revision variable removes warning about dynamic version -->
6262
<revision>${build.version}-SNAPSHOT</revision>
6363
<!-- Do not change unless you want different name for local builds. -->
6464
<build.number>-LOCAL</build.number>
6565
<!-- This allows to change between versions. -->
66-
<build.version>1.0.4</build.version>
66+
<build.version>1.1.0</build.version>
6767
<sonar.organization>bentobox-world</sonar.organization>
6868
</properties>
6969

src/main/java/world/bentobox/stranger/StrangerRealms.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public double getBorderSize() {
291291
Math.max(getSettings().getBarrierIncreaseBlocks(), (this.getSettings().getBarrierIncreaseBlocks() * Bukkit.getServer().getOnlinePlayers().size()));
292292
if (newBorderSize < borderSize) {
293293
// End any current task to replace it
294-
task.cancel();
294+
cancelBorderTask();
295295
// Trigger gradual reduction of border
296296
task = Bukkit.getScheduler().runTaskTimer(getPlugin(), () -> {
297297
if (borderSize > newBorderSize) {

0 commit comments

Comments
 (0)