Oh, ok, found the problem, but it leads to another question.
You see, on a seperate MC I did this:
this.healthb = 2000
For some reason, that makes it so that the code is invalid if the variable goes down later on, after the initial load...
As in:
this.healthb = 1980
The code will work, but, if I subratcted 20 from 2000, then it won't work, anyone know why is this so?
By the way, the code in the OP is on a frame.