Skip to content

Commit d21ca49

Browse files
authored
Merge pull request #331 from BentoBoxWorld/develop
Release 2.16.1
2 parents 5da21b8 + 2c21c8d commit d21ca49

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<!-- Do not change unless you want different name for local builds. -->
7272
<build.number>-LOCAL</build.number>
7373
<!-- This allows to change between versions. -->
74-
<build.version>2.16.0</build.version>
74+
<build.version>2.16.1</build.version>
7575
<sonar.projectKey>BentoBoxWorld_Level</sonar.projectKey>
7676
<sonar.organization>bentobox-world</sonar.organization>
7777
<sonar.host.url>https://sonarcloud.io</sonar.host.url>

src/main/java/world/bentobox/level/LevelsManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ public void migrate() {
107107
* @return true if successful, false if not added
108108
*/
109109
private boolean addToTopTen(Island island, long lv) {
110-
if (island != null && island.getOwner() != null && hasTopTenPerm(island.getWorld(), island.getOwner())) {
110+
if (island != null && island.getOwner() != null && island.getWorld() != null
111+
&& hasTopTenPerm(island.getWorld(), island.getOwner())) {
111112
topTenLists.computeIfAbsent(island.getWorld(), k -> new TopTenData(island.getWorld())).getTopTen()
112113
.put(island.getUniqueId(), lv);
113114
return true;

src/test/java/world/bentobox/level/LevelsManagerTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import static org.junit.Assert.assertFalse;
55
import static org.junit.Assert.assertTrue;
66
import static org.mockito.ArgumentMatchers.any;
7-
import static org.mockito.ArgumentMatchers.anyBoolean;
87
import static org.mockito.ArgumentMatchers.anyInt;
98
import static org.mockito.ArgumentMatchers.anyString;
109
import static org.mockito.ArgumentMatchers.eq;

0 commit comments

Comments
 (0)