The "When closing the GUI" trigger does not work.

Started by AMonsterl on

Topic category: Help with modding (Java Edition)

Last seen on 16:06, 25. Feb 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The "When closing the GUI" trigger does not work.

I made a procedure in which there is a variable, and when closing the GUI, the variable is assigned the number 1, and it should appear in the overlay, but when closing the GUI, 0 is displayed instead of 1, which indicates that the trigger "when closing the GUI" does not work. How can it be fixed, or can it be done in some other way?