From f043350d6a93aeb5b5634691c01620da2fe53bb6 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 19 Oct 2024 10:40:26 -0700 Subject: [PATCH 1/2] Add protection around null sections. #97 --- .../java/world/bentobox/boxed/listeners/NewAreaListener.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/world/bentobox/boxed/listeners/NewAreaListener.java b/src/main/java/world/bentobox/boxed/listeners/NewAreaListener.java index bffcfe8..9a99a49 100644 --- a/src/main/java/world/bentobox/boxed/listeners/NewAreaListener.java +++ b/src/main/java/world/bentobox/boxed/listeners/NewAreaListener.java @@ -358,6 +358,9 @@ public class NewAreaListener implements Listener { } private void place(ConfigurationSection section, Location center, Environment env) { + if (section == null) { + return; + } World world = env.equals(Environment.NORMAL) ? addon.getOverWorld() : addon.getNetherWorld(); if (world == null) { return; From ced7fafb3cc59d9197ddb24bab0dac2440acae25 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 19 Oct 2024 10:41:18 -0700 Subject: [PATCH 2/2] Version 2.7.3 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d5345a6..3147445 100644 --- a/pom.xml +++ b/pom.xml @@ -65,7 +65,7 @@ -LOCAL - 2.7.2 + 2.7.3 BentoBoxWorld_Boxed bentobox-world