"Float" is not usable where a "float" is required in FoodProperty effects
Liam-00 opened this issue ยท 0 comments
Issue description
In trying to copy the effects from an existing FoodProperty to a new FoodProperty, getting the effects from a FoodProperty returns a List<Pair<MobEffectInstance, Float>> and using that Float in FoodProperty.addEffect() (which calls for a float, lowercase) results in a Type 'java/lang/Float' (current frame, stack[3]) is not assignable to float error.
Steps to reproduce
Use a Float in a method that calls for a float parameter.
Script used
https://gist.github.com/Liam-00/d4bfba1ef2fdda6dd32363ddede9b62c
The crafttweaker.log file
https://gist.github.com/Liam-00/864da63d98bb49a9843b197c8019f706
Minecraft version
1.20.1
Modloader
Forge
Modloader version
47.3.0
CraftTweaker version
14.0.56
Other relevant information
No response
The latest.log file
https://gist.github.com/Liam-00/d519e882f9b4db6a0ea91718e04d05a0