You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening the crafting table, if there are already items in the table, it becomes impossible to drag items within the crafting table or the inventory. If the crafting table has no items, it returns to normal.
Related issus: #266, I don't know if it's the same phenomenon.
To Reproduce
Open the crafting table.
Place one or more items in the crafting grid.
Pick up another item and drag it across any slot while holding the left/middle/right mouse button.
Upon releasing the mouse button, the dragged item returns to its original position.
Expected behavior
The drag operation should take effect as expected, consistent with the behavior when the crafting table is empty. Specifically: self.inventory().lock().await.state_id should not increment during the drag operation.
The text was updated successfully, but these errors were encountered:
I've searched existing issues and couldn't find a duplicate.
Operating System
ubuntu 24
Server Software Version/Commit
4d5b7ac
What happened?
When opening the crafting table, if there are already items in the table, it becomes impossible to drag items within the crafting table or the inventory. If the crafting table has no items, it returns to normal.
The following line of code fails to pass the check: https://github.com/Snowiiii/Pumpkin/blob/4d5b7ac1563a02c300b810fb1ce0cb7f243e3a1b/pumpkin/src/client/container.rs#L123
When dragging items with existing items in the crafting table:
packet.state_id.0
remains in the Start state.Meanwhile, self.inventory().lock().await.state_id
increments as the drag operation progresses.packet.state_id.0
updates to synchronize.This behavior may be related to the following code. Commenting it out resolves the issue:
https://github.com/Snowiiii/Pumpkin/blob/4d5b7ac1563a02c300b810fb1ce0cb7f243e3a1b/pumpkin/src/client/container.rs#L185-L189
Related issus: #266, I don't know if it's the same phenomenon.
To Reproduce
Expected behavior
The drag operation should take effect as expected, consistent with the behavior when the crafting table is empty. Specifically:
self.inventory().lock().await.state_id
should not increment during the drag operation.The text was updated successfully, but these errors were encountered: