File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
main/java/world/bentobox/level
test/java/world/bentobox/level Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 71
71
<!-- Do not change unless you want different name for local builds. -->
72
72
<build .number>-LOCAL</build .number>
73
73
<!-- This allows to change between versions. -->
74
- <build .version>2.16.0 </build .version>
74
+ <build .version>2.16.1 </build .version>
75
75
<sonar .projectKey>BentoBoxWorld_Level</sonar .projectKey>
76
76
<sonar .organization>bentobox-world</sonar .organization>
77
77
<sonar .host.url>https://sonarcloud.io</sonar .host.url>
Original file line number Diff line number Diff line change @@ -107,7 +107,8 @@ public void migrate() {
107
107
* @return true if successful, false if not added
108
108
*/
109
109
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 ())) {
111
112
topTenLists .computeIfAbsent (island .getWorld (), k -> new TopTenData (island .getWorld ())).getTopTen ()
112
113
.put (island .getUniqueId (), lv );
113
114
return true ;
Original file line number Diff line number Diff line change 4
4
import static org .junit .Assert .assertFalse ;
5
5
import static org .junit .Assert .assertTrue ;
6
6
import static org .mockito .ArgumentMatchers .any ;
7
- import static org .mockito .ArgumentMatchers .anyBoolean ;
8
7
import static org .mockito .ArgumentMatchers .anyInt ;
9
8
import static org .mockito .ArgumentMatchers .anyString ;
10
9
import static org .mockito .ArgumentMatchers .eq ;
You can’t perform that action at this time.
0 commit comments