Started by
ARandomEnderman
on
Topic category: Help with Minecraft modding (Java Edition)
i have a very simple procedure that checks for some variables and some other stuff, but when i set groundpounded to -1 (or anything else) all other variables (Dashes, ticks) reset to default
Yeah, that definitely shouldn't be an issue, your code looks fine. Try regenerating the code and clearing the gradle caches- it might also be worth testing this in a separate workspace to see if the problem persists.
how would i regenerate the code and/or clear gradle cache?
To regenerate the code, press the orange button in the top right hand corner. (The mouseover text tells you which one.) Reloading the gradle caches is a more extreme measure that takes quite a bit longer, but fixes errors that have to do with stuff getting corrupted. To do that, you need to go into the 'build' tab at the top of the screen, and select 'build and run.' It's a good first thing to try if you're getting a weird error.
I did both, and it fixed 1 of the procedures, the 2 other ones still do it