Gui Crashes Mc 1.18.2 Text Input

Started by Possibleee on

Topic category: Help with modding (Java Edition)

Last seen on 03:17, 31. Mar 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Gui Crashes Mc 1.18.2 Text Input
Fri, 03/31/2023 - 03:18 (edited)

I am making a mod where when you craft a custom item, and right-click on it, a GUI will appear allowing you to unban a person. (the reason for unban is because it is hardcore).

I am on Minecraft 1.18.2 and MCreator 2022.1

custom item triggers

when item is right clicked (code)

main program

I get a -805306369 which includes this help link: https://bugs.mojang.com/browse/MC-23484

 

Problem: 

When I right-click on the item, it will crash my game. It just freezes up and will not respond. This happens for both normal Minecraft, and the built-in testing window.

I thought it was an issue in "ReviveTotemRightClicked" where I had an infinite loop with true = true in for loop. I then replaced it with a while loop to wait until the process is done so it could remove the item. This ended up not working.


Should I try to update the software? I thought I did, but right now its on 2022.1.
 

Thank you for your time and for any help given.



Edit: The issue is the while loop and item stack, as soon as i remove that things start working.

Edited by Possibleee on Fri, 03/31/2023 - 03:18