Closed legendblade closed 6 years ago
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.
The script fails due to a ClassCastException
The script would return the durability bonus/penalty of extra material stats.
https://gist.github.com/legendblade/09943a0fcd5535b13b754f1ff69110a6
N/A. Also, both sample.zs script and craftweaker.log are contained in the same gist.
Thank you!
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"):
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!