Pixelmon Mod - Bug tracker

[8.1.2] Unable to /pokebattle NPCs with Double Battle format fix completed for upcoming version

Ticket description:
When trying to force a battle between the player and a single NPC trainer with the Double Battle battle rule type, the game reports "an unknown error occurred while attempting to perform this command" message in chat. Single battle mode on the same NPC works. In the console I receive the message

[14:26:16] [Server thread/WARN] [minecraft/CommandHandler]: Couldn't process command: pokebattle @s MyNameGuy
java.lang.ArrayIndexOutOfBoundsException: 2
at com.pixelmonmod.pixelmon.commands.BattleCommand.execute(BattleCommand.java:114) ~[BattleCommand.class:8.1.2]
at com.pixelmonmod.pixelmon.api.command.PixelmonCommand.func_184881_a(PixelmonCommand.java:87) ~[PixelmonCommand.class:8.1.2]
at net.minecraft.command.CommandHandler.func_175786_a(CommandHandler.java:119) [bj.class:?]
at net.minecraft.command.CommandHandler.func_71556_a(CommandHandler.java:91) [bj.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:962) [pa.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:941) [pa.class:?]
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:37) [la.class:?]
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:9) [la.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [hv$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_261]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_261]
at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:723) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_261]

Comments

#21400 Posted by Barza » 02 Nov 2020 13:20

Thank you for the report. I was able to replicate the issue and get pretty much the same error.

#21479 Posted by IAmMyselfBae » 13 Nov 2020 21:06

Forwarded to our internal tracker.

Ticket details

  • Ticket ID: 15224
  • Project: Pixelmon Mod
  • Status: Fix completed for upcoming version
  • Component: Battle
  • Project version: 8.x.x
  • Priority: Normal
  • Severity: Normal
  • Forge/Sponge: forge-1.12.2-14.23.5.2854
  • What else would be useful to know?: TrainerCommands-1.12.2-2.5.1-universal, WonderTrade-1.12.2-4.6.2-universal
  • Assigned to: (unassigned)
  • Reported by: Jond22 (Send PM)
  • Reporter's tickets: (List all tickets)
  • Reported on: 27 Oct 2020 15:32
  • Ticket last visited by: SirDoof on 17 Dec 2021 09:03
JOIN THE TEAM