KubeJS

KubeJS

61M Downloads

invetory.clear() does not clear items in survival crafting menu

Qualia765 opened this issue ยท 0 comments

commented

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

  1. Options > Controls > Mouse Settings > Touchscreen Mode: ON
  2. In survival mode drag and drop an item from the inventory to the 2x2 crafting grid
  3. Click outside of the inventory to close the inventory
  4. Run the KubeJS code event.player.inventory.clear()
  5. Open inventory
  • Result: All items are cleared from the inventory, but not from the 2x2 crafting grid
  • Expected: All items are cleared from everywhere
  1. Click outside of the inventory to close the inventory
  2. Run command /clear
  3. Open inventory
  4. Observe that all the items everywhere are gone

Crash report/logs

No response