File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
main/java/world/bentobox/level/config
test/java/world/bentobox/level Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 5555 <powermock .version>2.0.9</powermock .version>
5656 <!-- More visible way how to change dependency versions -->
5757 <spigot .version>1.21.3-R0.1-SNAPSHOT</spigot .version>
58- <bentobox .version>3.2.5 -SNAPSHOT</bentobox .version>
58+ <bentobox .version>3.3.1 -SNAPSHOT</bentobox .version>
5959 <!-- Warps addon version -->
6060 <warps .version>1.12.0</warps .version>
6161 <!-- Visit addon version -->
6767 <!-- Do not change unless you want different name for local builds. -->
6868 <build .number>-LOCAL</build .number>
6969 <!-- This allows to change between versions. -->
70- <build .version>2.19.2 </build .version>
70+ <build .version>2.19.3 </build .version>
7171 <sonar .projectKey>BentoBoxWorld_Level</sonar .projectKey>
7272 <sonar .organization>bentobox-world</sonar .organization>
7373 <sonar .host.url>https://sonarcloud.io</sonar .host.url>
351351 <doclint >none</doclint > <!-- Turnoff all checks -->
352352 <failOnError >false</failOnError >
353353 <javadocExecutable >${java.home} /bin/javadoc</javadocExecutable >
354- <source >17 </source >
354+ <source >21 </source >
355355 </configuration >
356356 <executions >
357357 <execution >
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ private void addMissing(ConfigurationSection blocks) {
100100
101101 private boolean isOther (String key ) {
102102 // Maybe a custom name space
103- return ItemsAdderHook .isInRegistry (key );
103+ return addon . isItemsAdder () && ItemsAdderHook .isInRegistry (key );
104104 }
105105
106106 private boolean isSpawner (String key ) {
Original file line number Diff line number Diff line change 6060import world .bentobox .bentobox .managers .AddonsManager ;
6161import world .bentobox .bentobox .managers .CommandsManager ;
6262import world .bentobox .bentobox .managers .FlagsManager ;
63+ import world .bentobox .bentobox .managers .HooksManager ;
6364import world .bentobox .bentobox .managers .IslandWorldManager ;
6465import world .bentobox .bentobox .managers .IslandsManager ;
6566import world .bentobox .bentobox .managers .PlaceholdersManager ;
@@ -118,6 +119,8 @@ public class LevelTest {
118119 private PluginManager pim ;
119120 @ Mock
120121 private BlockConfig blockConfig ;
122+ @ Mock
123+ private HooksManager hm ;
121124
122125 @ BeforeClass
123126 public static void beforeClass () throws IOException {
@@ -150,6 +153,8 @@ public static void beforeClass() throws IOException {
150153 */
151154 @ Before
152155 public void setUp () throws Exception {
156+ when (plugin .getHooks ()).thenReturn (hm );
157+
153158 Server server = ServerMocks .newServer ();
154159 // Set up plugin
155160 Whitebox .setInternalState (BentoBox .class , "instance" , plugin );
You can’t perform that action at this time.
0 commit comments