Closed ams2990 closed 9 years ago
Its not so much the field doesn't exist but rather its renamed. The ReflectionUtility we use is not working correctly and has yet be fixed. What it should be doing is changing the name "potionTypes" to "field_76425_a".
So what's the impact of this not being fixed? I see the code is trying to expand the size of the internal potion array. What will that code path failing do?
Nothing right now, which is why it has not been fixed. The code dates back from when Voltz Engine use to be called Resonant Engine. I keep the code around as it does work, but the reflection fails outside the dev workspace.
That being said I'll see if i can correct it sometime today, or apply a less noticeable crash log.
Should be fixed now
In PotionUtility.java#L24, the code tries to assign to the field "potionTypes" of class net.minecraft.potion.Potion. Clearly the field doesn't exist in the class, but I can't even find where the class is loaded from. AFAIK, that's a client class and shouldn't even exist on the server. Clearly it does because we're getting a NoSuchFieldException and not a NoClassDefFoundError. Either way, the potion array is not getting expanded like you are intending. If this is meant to be client-side only behavior, please modify the code so the reflective call is not made on the server.
The stack trace: