mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2024-12-03 13:23:32 +01:00
Merge pull request #98 from BentoBoxWorld/97_NPE_on_reset
Add protection around null sections. #97
This commit is contained in:
commit
b3a81c6f78
2
pom.xml
2
pom.xml
@ -65,7 +65,7 @@
|
||||
<!-- Do not change unless you want different name for local builds. -->
|
||||
<build.number>-LOCAL</build.number>
|
||||
<!-- This allows to change between versions. -->
|
||||
<build.version>2.7.2</build.version>
|
||||
<build.version>2.7.3</build.version>
|
||||
|
||||
<sonar.projectKey>BentoBoxWorld_Boxed</sonar.projectKey>
|
||||
<sonar.organization>bentobox-world</sonar.organization>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user