Honestly stepheight should be a "IAttribute"
But yeah the way stepup is implemented it breaks basically anything that has stepassist implemented.
So what you should change is use a += & -= instead of a =
for setting stepheight and use a boolean to keep track of if you added it or not.
Because if a mod comes and uses += & -= and yours is overriding it that can cause that stepassist breaks and you cant even go up stairs anymore.