KubeJS (Old)

KubeJS (Old)

3M Downloads

player.openChestGUI clears player inventory if user exits while the gui is open

khazenor opened this issue ยท 1 comments

commented

Minecraft Version

1.21.1

KubeJS Version

kubejs-neoforge-2101.7.1-build.181

Rhino Version

rhino-2101.2.7-build.74

Architectury Version

not installed

Forge/Fabric Version

neoforge 21.1.131

Describe your issue

Reproduction steps:

  1. Copy the following files to the kubejs dir (there is really only one file you need, the server file) kubejs.zip
  2. open a new world in creative, spawn in a stick and other items to your inventory
  3. right click the stick to open the chestGUI
  4. while the GUI is still open, exit the game by clicking the "x" button
  5. open the game again and join the world

Bug:

  • The player's inventory is now cleared

What should happen:

  • The player's inventory should stay the same as before they exited the game

Latest log: latest.log

KubeJs logs: kubejsLogs.zip

Crash report/logs

No response

commented

Notably, this issue doesn't seem to be happening in 1.20.1:

  • kubejs-forge-2001.6.5-build.16.jar
  • rhino-forge-2001.2.3-build.10.jar
  • Forge: 47.3.29

Maybe it's a Forge -> NeoForge migration issue?