How to keep code from reverting to default?

Started by alessandro8888 on

Topic category: Help with modding (Java Edition)

Last seen on 21:46, 11. Jun 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to keep code from reverting to default?

So I opened the ModEntities.java file for projectiles, and I see all those variables for stuff like velocity updates and tracking range.

screenshot of the variables i edited

However, when I close the tab, even after saving, it undoes all my variables. The strange thing is that when I have the tab open while I run the client, the changes work ingame. It's just when I close the tab, it removes all the changes, even with reformatting and saving multiple times. Why is this happening, how can I make changes to this code without it getting discarded everytime I close it??