KubeJS

KubeJS

107M Downloads

[Bug] Kubedex disconnects player when ItemStack empty

TheonlyTazz opened this issue ยท 1 comments

commented

Minecraft Version

1.21.1

KubeJS Version

2101.7.1-build.181

Rhino Version

2101.2.7-build.74

Architectury Version

13.0.8

Forge/Fabric Version

Neoforge 21.1.186

Describe your issue

Caused by: java.lang.RuntimeException: Failed encoding custom payload kubejs:kubedex/request_inventory: io.netty.handler.codec.EncoderException: Empty ItemStack not allowed

Kubedex has a default Keybind of K, this clashes with mods that offer compacting items inside your inventory.
when both are pressed at the same time, theres a chance the ItemStack is empty. This results in the player disconnecting.

I would suggest removing the Keybind of Kubedex, bcause its only a developer needed tool, and not something you'd need to use inside a modpack you are playing

Original Issue:
FTBTeam/FTB-Modpack-Issues#8291

Crash report/logs

No response

commented

Fixed in dev already

if (!stack.isEmpty()) {
stacks.add(stack);
}

As a hotfix, I released this fix on my mod KubeJS Tweaks.