Wrong error message for type error of partial application done by "apply"?
cyb0124 opened this issue ยท 2 comments
Issue type:
- ๐ Bug
Short description:
This error message essentially shows "operator expected but got operator", which doesn't make sense.
Possible cause:
https://github.com/CyclopsMC/IntegratedDynamics/blob/8b9a2b67815b3335dcedcce2d6d7209784c25561/src/main/java/org/cyclops/integrateddynamics/core/evaluate/OperatorBuilders.java#L209C21-L209C21
This here, shouldn't it be input.getVariables()[1]
instead of input.getVariables()[0]
?
Steps to reproduce the problem:
- Make a operator card set to "apply"
- Make a const int card set to 0
- Make a apply card taking the above cards as input
Expected behaviour:
Error message should show "operator expected but got int", but it shows "operator expected but got operator"
Versions:
- This mod: IntegratedDynamics-1.18.2-1.13.7
- Minecraft: 1.18.2
- Forge: 40.2.9