ITICMaterial durabilityExtra Attempts to Cast to HandleMaterialStats
legendblade opened this issue ยท 0 comments
Issue Description:
Attempting to use TICMat's durabilityExtra parameter results in a ClassCastException due to https://github.com/jaredlll08/ModTweaker/blob/1.12/src/main/java/com/blamejared/compat/tconstruct/materials/TICMaterial.java#L103 trying to cast the result to HandleMaterialStats instead of ExtraMaterialStats.
What happens:
The script fails due to a ClassCastException
What you expected to happen:
The script would return the durability bonus/penalty of extra material stats.
Script used (Please Pastebin or gist your script, posting an unpasted or ungist'd script will automatically close this issue):
https://gist.github.com/legendblade/09943a0fcd5535b13b754f1ff69110a6
Minetweaker.log file (Please Pastebin or gist your file, posting an unpasted or ungist'd file will automatically close this issue):
https://gist.github.com/legendblade/09943a0fcd5535b13b754f1ff69110a6
Affected Versions (Do not use "latest"):
- Minecraft: 1.12.2
- Forge: 14.23.4.2703
- Crafttweaker: 1.12-4.1.8
- ModTweaker: 4.0.12
- MTLib: 3.0.4
Your most recent log file where the issue was present:
N/A. Also, both sample.zs script and craftweaker.log are contained in the same gist.
Thank you!