BentoBoxWorld / CaveBlock

CaveBlock addon for BentoBox. An interesting variation from Skyblock, where your goal is to survive in a cube of stone!
Eclipse Public License 2.0
16 stars 6 forks source link

Error when making a new island #90

Open tastybento opened 1 year ago

tastybento commented 1 year ago

Expected behavior

No errors in the console

Observed/Actual behavior

[15:00:00 ERROR]: Could not pass event InventoryClickEvent to BentoBox v1.24.1
java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.Integer (java.lang.Boolean and java.lang.Integer are in module java.base of loader 'bootstrap')
    at java.util.HashMap.forEach(HashMap.java:1421) ~[?:?]
    at world.bentobox.bentobox.managers.IslandWorldManager.convertToFlags(IslandWorldManager.java:969) ~[BentoBox-1.24.1.jar:?]
    at world.bentobox.bentobox.managers.IslandWorldManager.getDefaultIslandSettings(IslandWorldManager.java:757) ~[BentoBox-1.24.1.jar:?]
    at world.bentobox.bentobox.database.objects.Island.lambda$setFlagsDefaults$13(Island.java:1055) ~[BentoBox-1.24.1.jar:?]
    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?]
    at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
    at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
    at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
    at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?]
    at world.bentobox.bentobox.database.objects.Island.setFlagsDefaults(Island.java:1055) ~[BentoBox-1.24.1.jar:?]
    at world.bentobox.bentobox.managers.island.NewIsland.newIsland(NewIsland.java:210) ~[BentoBox-1.24.1.jar:?]
    at world.bentobox.bentobox.managers.island.NewIsland.<init>(NewIsland.java:62) ~[BentoBox-1.24.1.jar:?]
    at world.bentobox.bentobox.managers.island.NewIsland$Builder.build(NewIsland.java:159) ~[BentoBox-1.24.1.jar:?]
    at world.bentobox.bentobox.api.commands.island.IslandCreateCommand.makeIsland(IslandCreateCommand.java:98) ~[BentoBox-1.24.1.jar:?]
    at world.bentobox.bentobox.api.commands.island.IslandCreateCommand.execute(IslandCreateCommand.java:78) ~[BentoBox-1.24.1.jar:?]
    at world.bentobox.bentobox.panels.IslandCreationPanel.lambda$openPanel$1(IslandCreationPanel.java:55) ~[BentoBox-1.24.1.jar:?]
    at world.bentobox.bentobox.listeners.PanelListenerManager.lambda$onInventoryClick$0(PanelListenerManager.java:56) ~[BentoBox-1.24.1.jar:?]
    at java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
    at world.bentobox.bentobox.listeners.PanelListenerManager.onInventoryClick(PanelListenerManager.java:54) ~[BentoBox-1.24.1.jar:?]
    at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor164.execute(Unknown Source) ~[?:?]
    at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
    at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:git-Paper-164]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
    at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.20.1.jar:git-Paper-164]
    at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.20.1.jar:git-Paper-164]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
    at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:3258) ~[?:?]
    at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:58) ~[?:?]
    at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:23) ~[?:?]
    at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:51) ~[?:?]
    at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.20.1.jar:git-Paper-164]
    at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
    at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
    at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1339) ~[paper-1.20.1.jar:git-Paper-164]
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[paper-1.20.1.jar:git-Paper-164]
    at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
    at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1316) ~[paper-1.20.1.jar:git-Paper-164]
    at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1309) ~[paper-1.20.1.jar:git-Paper-164]
    at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
    at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1287) ~[paper-1.20.1.jar:git-Paper-164]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1175) ~[paper-1.20.1.jar:git-Paper-164]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) ~[paper-1.20.1.jar:git-Paper-164]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]

Steps/models to reproduce

Download Caveblock zip from download.bentobox.world. Install with fresh server. Login and run /cb.

BentoBox version

[19:03:24 INFO]: Running PAPER 1.20.1.
[19:03:24 INFO]: BentoBox version: 1.24.1
[19:03:24 INFO]: Database: JSON
[19:03:24 INFO]: Loaded Game Worlds:
[19:03:24 INFO]: caveblock-world (CaveBlock): Overworld, Nether, The End
[19:03:24 INFO]: Loaded Addons:
[19:03:24 INFO]: Bank 1.7.0 (DISABLED)
[19:03:24 INFO]: Biomes 2.1.1 (ENABLED)
[19:03:24 INFO]: CaveBlock 1.18.0 (ENABLED)
[19:03:24 INFO]: Challenges 1.2.0 (ENABLED)
[19:03:24 INFO]: ControlPanel 1.13.0 (ENABLED)
[19:03:24 INFO]: DimensionalTrees 1.6.0 (ENABLED)
[19:03:24 INFO]: Level 2.11.0 (ENABLED)
[19:03:24 INFO]: Warps 1.13.0 (ENABLED)

Plugin list

 - BentoBox, BentoBox-Bank, BentoBox-Biomes, BentoBox-CaveBlock, BentoBox-Challenges, BentoBox-Level, BentoBox-Warps

Other

No response