-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Issue description
I'm trying to create a procedure that will check the configuration file and read the properties, get their values and then set global variable values to them. The global variables would then be used with Cloth-Config Plugin that I can provide an in-game option to change configuration settings, but I need to get the latest values first to ensure the player sees the right settings.
What's happening is, if I use the Read JSON file and get values, I get a stack overflow and the Set Global elements return null. I also tried using the for each line of the file get the text and do...element and still the global variables are not getting set.
To prove that the global variables are not getting set (or reading the properties to do so), I added a logger to print out the value. The game errors on load with a null value.


How to reproduce this issue?
Created a config.json file
Added Global Variables to support Cloth-Config

Attempted to read the properties and set global variables in a procedure
Ran Client option
Fails
Operating system
Windows
Details
FileManager 5.10
MCreator 2024.1.17319
neoforge-1.20.4
Example workspace
No response
Logs
Issue tracker rule checks (please read carefully)
- I have checked that my problem is not already reported
- I have checked that my problem is not covered on Knowledge Base or on MCreator's Wiki
- I have checked that my written content does not violate the publishing guidelines