[BUG] kill monster command doesn't work, outputs error
cproxy opened this issue ยท 0 comments
Is there an existing issue for this?
- I have searched the existing issues
Are you using the latest MineColonies Verison?
- I am running the latest alpha version of MineColonies for my Minecraft version.
Did you check on the Wiki? or ask on Discord?
- I checked the MineColonies Wiki and made sure my issue is not covered there. Or I was sent from discord to open an issue here.
Minecraft Version
1.19.2
MineColonies Version
1.0.1310-ALPHA
Structurize Version
1.0.490-ALPHA.
Related Mods and their Versions
Forge 43.1.47
Current Behavior
Tried to kill monsters in colony. Mummy raid couldn't find it.
Used /mc kill raid but it found no entity.
Then used /mc kill monster and received the below with no monsters, raid related or not, killed
/mc kill raid
Server thread/INFO 13:00:47
0 entities killed
/mc kill monster
Server thread/WARN13:01:27
Error during running command:
Console 13:01:27
java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 2049
at it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap$1.forEach(Int2ObjectLinkedOpenHashMap.java:1766) ~[fastutil-8.5.6.jar%2389!/:?] {}
at com.google.common.collect.Iterables$UnmodifiableIterable.forEach(Iterables.java:110) ~[guava-31.0.1-jre.jar%2372!/:?] {}
at com.minecolonies.coremod.commands.killcommands.CommandKillMonster.onExecute(CommandKillMonster.java:24) ~[minecolonies-1.19.2-1.0.1310-ALPHA.jar%23199!/:1.19.2-1.0.1310-ALPHA] {re:classloading}
at com.minecolonies.coremod.commands.commandTypes.IMCCommand.checkPreConditionAndExecute(IMCCommand.java:60) ~[minecolonies-1.19.2-1.0.1310-ALPHA.jar%23199!/:1.19.2-1.0.1310-ALPHA] {re:classloading}
at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:263) ~[brigadier-1.0.18.jar%2374!/:?] {}
at net.minecraft.commands.Commands.m_242674_(Commands.java:240) ~[server-1.19.2-20220805.130853-srg.jar%23270!/:?] {re:classloading}
at net.minecraft.commands.Commands.m_230957_(Commands.java:220) ~[server-1.19.2-20220805.130853-srg.jar%23270!/:?] {re:classloading}
at net.minecraft.server.dedicated.DedicatedServer.m_139665_(DedicatedServer.java:307) ~[server-1.19.2-20220805.130853-srg.jar%23270!/:?] {re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServer.java:293) ~[server-1.19.2-20220805.130853-srg.jar%23270!/:?] {re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:806) ~[server-1.19.2-20220805.130853-srg.jar%23270!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:kubejs-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:kubejs-common.mixins.json:inject_resources.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:fastload.mixins.json:server.MinecraftServerMixin,pl:mixin:APP:globaldataandresourcepacks.mixins.json:PackConfigurationMixin,pl:mixin:APP:byg.mixins.json:access.MinecraftServerAccess,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:APP:wwoo_forge.mixins.json:QuitMixin,pl:mixin:A}
at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:654) ~[server-1.19.2-20220805.130853-srg.jar%23270!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:kubejs-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:kubejs-common.mixins.json:inject_resources.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:fastload.mixins.json:server.MinecraftServerMixin,pl:mixin:APP:globaldataandresourcepacks.mixins.json:PackConfigurationMixin,pl:mixin:APP:byg.mixins.json:access.MinecraftServerAccess,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:APP:wwoo_forge.mixins.json:QuitMixin,pl:mixin:A}
at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:244) ~[server-1.19.2-20220805.130853-srg.jar%23270!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:kubejs-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:kubejs-common.mixins.json:inject_resources.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:fastload.mixins.json:server.MinecraftServerMixin,pl:mixin:APP:globaldataandresourcepacks.mixins.json:PackConfigurationMixin,pl:mixin:APP:byg.mixins.json:access.MinecraftServerAccess,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:APP:wwoo_forge.mixins.json:QuitMixin,pl:mixin:A}
at java.lang.Thread.run(Thread.java:833) [?:?] {re:mixin}
Expected Behavior
Monsters killed
Reproduction Steps
use /mc kill monster
Logs
https://gist.github.com/cproxy/a5e83d3f51d4a8ccb518c25561aa0254
Anything else?
- Add a thumbs-up to the bug report if you are also affected. This helps the bug report become more visible to the team and doesn't clutter the comments.
- Add a comment if you have any insights or background information that isn't already part of the conversation.