1.12-2.3.2.258 - Chaos Guardian Crystal Crash
EPIICTHUNDERCAT opened this issue ยท 5 comments
Description
Crash while flying into Chaos Dragon Island! Seems like the error is in the (EntityGuardianCrystal.java:89)
Base information
- Minecraft version: 1.12
- Minecraft Forge version:2443
- Mod Pack: Custom
Crash report
This is ,a random issue that has been showing up since 1.10.2 and i still have absolutely no idea what causes it. For some reason the entity data manager sometimes returns an integer value when the value requested should be a float and that causes this crash.
This is on my bug list but for the moment i have no idea how to fix it. I will probably just end up building my own data manager at some point because vanilla's is just to problematic.
It seems like a solution may be to cast to Number
and then use its functions to get the type you want. For example, this line might be changed to:
health = ((Number)dataManager.get(HEALTH)).floatValue();
Sure at this point i dont really see any other options. @covers1624 checked the bytecode for this and it looks like it should fix the issue.