Mojira Archive
MC-273705

Game prints exception and stack trace when performing a smash attack with a mace enchanted with Wind Burst 0

If you smash perform a smash attack on a mob with a mace enchanted with Wind Burst 0, the game prints an exception and its entire stack trace to the console.

How to reproduce:

  1. In the launcher, go to the settings, enable "Open output log when Minecraft: Java Edition starts" and launch the game.
  2. In a world, run the following command:
    /give @s minecraft:mace[minecraft:enchantments={levels:{"minecraft:wind_burst":0}}]
  3. Spawn a mob on the ground.
  4. Fly above the mob.
  5. Fall towards it and perform a smash attack on it with the mace you were given.
  6. Look at the log.

Expected result:

The player performs the smash attack without any issues.

Observed result:

The player performs the smash attack, but this is printed to the log:

Failed to handle packet ahd@<identifier>, suppressing error
java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 3
	at java.base/java.util.ImmutableCollections$ListN.get(ImmutableCollections.java:687)
	at daj$f.a(SourceFile:77)
	at dav.a(SourceFile:63)
	at java.base/java.util.Optional.map(Optional.java:260)
	at dav.a(SourceFile:63)
	at dac.a(SourceFile:296)
	at dac.a(SourceFile:304)
	at dae.a(SourceFile:206)
	at dae.a(SourceFile:146)
	at dae.a(SourceFile:206)
	at dae.a(SourceFile:195)
	at cmx.e(SourceFile:1375)
	at aqv.e(SourceFile:1743)
	at aru$1.a(SourceFile:1650)
	at ahd$1.a(SourceFile:174)
	at ahd.a(SourceFile:74)
	at aru.a(SourceFile:1610)
	at ahd.a(SourceFile:61)
	at ahd.a(SourceFile:15)
	at zj.a(SourceFile:27)
	at aln.run(SourceFile:18)
	at bph.d(SourceFile:162)
	at bpl.d(SourceFile:23)
	at net.minecraft.server.MinecraftServer.b(SourceFile:864)
	at net.minecraft.server.MinecraftServer.d(SourceFile:173)
	at bph.B(SourceFile:136)
	at net.minecraft.server.MinecraftServer.bv(SourceFile:846)
	at net.minecraft.server.MinecraftServer.B(SourceFile:840)
	at bph.b(SourceFile:145)
	at net.minecraft.server.MinecraftServer.b(SourceFile:810)
	at net.minecraft.server.MinecraftServer.v_(SourceFile:815)
	at net.minecraft.server.MinecraftServer.y(SourceFile:702)
	at net.minecraft.server.MinecraftServer.a(SourceFile:281)
	at java.base/java.lang.Thread.run(Thread.java:1583)

(The <identifier> part is different every time.)

Duplicate

[Mod] ManosSef

2024-06-21, 11:14 PM

2024-06-28, 08:04 AM

2024-06-28, 08:04 AM

0

0

Confirmed

Enchantments

1.21

-