Newest snapshot -> Using global variables does not import the variables class

Status
Can not reproduce
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

So I used a global variable (in session scope) called buildModeEnabled. The build failed, so I was looking for errors in the generated code. After a few minutes I noticed that the variables class was not imported.

Attachment Size
Screenshot_4_3.png12.67 KB 12.67 KB
Missing Import.png33.19 KB 33.19 KB
hope it contains all the important things of the workspace196.66 KB 196.66 KB

Issue comments



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.