Skip to content

Commit ac3b40f

Browse files
authored
Merge branch 'BentoBoxWorld:develop' into develop
2 parents 59378b8 + 59fa018 commit ac3b40f

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
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 -->
@@ -67,7 +67,7 @@
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>
@@ -351,7 +351,7 @@
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>

src/main/java/world/bentobox/level/config/BlockConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
import world.bentobox.bentobox.managers.AddonsManager;
6161
import world.bentobox.bentobox.managers.CommandsManager;
6262
import world.bentobox.bentobox.managers.FlagsManager;
63+
import world.bentobox.bentobox.managers.HooksManager;
6364
import world.bentobox.bentobox.managers.IslandWorldManager;
6465
import world.bentobox.bentobox.managers.IslandsManager;
6566
import 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);

0 commit comments

Comments
 (0)