[Crash]: Unable to right click drag items from nether chest (MouseTweaks)
Blex07 opened this issue ยท 2 comments
Mod Loader (Required)
Fabric
Minecraft Version (Required)
1.20.1
Mod Version (Required)
8.0.1
Notes (Required)
- Click on an item in a nether chest to grab it with your cursor
- Move the grabbed item onto a free slot in your inventory
- Hold right click and drag onto an adjacent slot
- The game will crash upon reaching the different slot
Note: I'm using MouseTweaks
Update: It seems that the RMB tweak causes the crash
Crash Report (Required)
https://gist.github.com/Blex07/29f59b8a24bfd2d529de2fd297f65b8e
latest.log (Optional)
No response
Just adding on to this -- the scroll wheel tweak doesn't let you continue adding items to a stack inside the Nether Chest via scrolling once it reaches 64. It doesn't cause a crash (like the right mouse button tweak does), it just stops at 64. Possibly fixable only on the Mouse Tweaks end but I thought I'd mention it here too.
The issue is that Minecraft has three methods for retrieving a max stack size, one on ItemStack
, and two on Slot
, where one takes an ItemStack
while the other one does not and just returns the max stack size of the Container
.
For Nether Chested to work properly it's important to use Slot::getMaxStackSize(ItemStack)
and none of the others, but all three are unfortunately easily mixed up since in vanilla they pretty much are interchangeable.