invetory.clear() does not clear items in survival crafting menu
Qualia765 opened this issue ยท 0 comments
Minecraft Version
1.18.2
KubeJS Version
kubejs-forge-1802.5.5-build.569.jar
Rhino Version
rhino-forge-1802.2.1-build.255.jar
Architectury Version
architectury-4.11.89-forge.jar
Forge/Fabric Version
Forge - 40.1.86
Describe your issue
Really minor bug that will affect practically no one
- Options > Controls > Mouse Settings > Touchscreen Mode: ON
- In survival mode drag and drop an item from the inventory to the 2x2 crafting grid
- Click outside of the inventory to close the inventory
- Run the KubeJS code
event.player.inventory.clear()
- Open inventory
- Result: All items are cleared from the inventory, but not from the 2x2 crafting grid
- Expected: All items are cleared from everywhere
- Click outside of the inventory to close the inventory
- Run command
/clear
- Open inventory
- Observe that all the items everywhere are gone
Crash report/logs
No response