The game crashes when you shift-click on a chest while you are looking at a donkey's inventory and while a command block removes the chest from a donkey.
To reproduce
Summon and tame a donkey
Put a chest onto the donkey
Run
/data modify entity @e[type=minecraft:donkey,limit=1,sort=nearest] ChestedHorse set value 0b
in a command block in order to remove the chest from the donkey.
4. Set the command block to Repeat, Unconditional, and Always Active
5. Fill your inventory completely
6. Open the donkey's inventory
7. Shift-click on any item
→ ❌ The game crashes
Stack trace
20w46a: crash-2020-11-25_14.32.08-client.txt
Description: Container click
java.lang.IndexOutOfBoundsException: Index 44 out of bounds for length 38
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:373)
at java.base/java.util.ArrayList.get(ArrayList.java:427)
at gj.get(SourceFile:46)
at bis.a(SourceFile:528)
at bjp.b(SourceFile:108)
at bis.b(SourceFile:267)
at bis.a(SourceFile:172)
at eaz.a(SourceFile:396)
at dsz.a(SourceFile:562)
at dsz.a(SourceFile:358)
at dnj.b(SourceFile:92)
at dsc.a(SourceFile:456)
at dnj.a(SourceFile:92)
at dnj.c(SourceFile:162)
at aol.execute(SourceFile:94)
at dnj.b(SourceFile:162)
at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36)
at org.lwjgl.system.JNI.invokeV(Native Method)
at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101)
at com.mojang.blaze3d.systems.RenderSystem.flipFrame(SourceFile:115)
at dig.e(SourceFile:308)
at dni.e(SourceFile:1073)
at dni.e(SourceFile:688)
at net.minecraft.client.main.Main.main(SourceFile:215)
Maybe fixed in 20w51a
can't reproduce in 20w51a