mojira.dev
MC-269644

The game crashes when putting items with max stack sizes above 64 into bundles

The Bug:

The game crashes when putting items with max stack sizes above 64 into bundles.

A crash report regarding this has been attached and can be found below.

Stack Trace:

[^crash-2024-03-20_16.42.33-client.txt]

Description: Container click

java.lang.ArithmeticException: / by zero
    at cvk$a.c(SourceFile:134)
    at cvk$a.a(SourceFile:145)
    at crg.a(SourceFile:90)
    at csz.a(SourceFile:461)
    at cod.a(SourceFile:535)
    at cod.b(SourceFile:408)
    at cod.a(SourceFile:294)
    at fmq.a(SourceFile:370)
    at fmb.b(SourceFile:521)
    at fmq.b(SourceFile:606)
    at fdf.a(SourceFile:103)
    at fld.a(SourceFile:453)
    at fdf.a(SourceFile:103)
    at fdf.c(SourceFile:186)
    at boc.execute(SourceFile:108)
    at fdf.b(SourceFile:186)
    at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
    at org.lwjgl.system.JNI.invokeV(Native Method)
    at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3509)
    at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:236)
    at fde.c(SourceFile:1364)
    at fde.f(SourceFile:895)
    at net.minecraft.client.main.Main.main(SourceFile:265)

Steps to Reproduce:

  1. Obtain a bundle.

  2. Give yourself a diamond sword with a max stack size of 65 by using the command provided below.

    /give @s minecraft:diamond_sword[minecraft:max_stack_size=65] 1
  3. Put the diamond sword into the bundle.

Observed Behavior:

The game crashes.

Expected Behavior:

The game would not crash.

Linked issues

MC-269646 putting originally unstackable item that has max_stack_size over 1 into bundle crashes the game Resolved MC-269664 Game crash when putting highly stackable item in bundle Resolved MC-269725 Bundles cannot hold items with a stack size over 64. Resolved MC-269753 If you use Bundle Right click the item that their Item components named "max_stack_size" is more than 64,the game will be crashed Resolved MC-269754 max stack size crash bug Resolved

Attachments

Comments 0

No comments.

Avoma

eowyn36

Confirmed

Platform

Very Important

Crash

24w12a, 24w13a

24w14a

Retrieved