KubeJS (Old)

KubeJS (Old)

3M Downloads

EitherRecipeComponent unconditionally fails validation due to incorrect usage of Optional

campbellcole opened this issue ยท 2 comments

commented

if (left.isEmpty()) {
high.validate(left.get());

This code checks if left is empty, then gets the value if it is, which causes a NoSuchElementException to be thrown if this recipe component is used.

commented

Thanks for the report, i'm... surprised nobody ever noticed that (i guess the Either component was never really used?)

commented

Fixed this in dev, though since Lat is working on a bigger update right now it'll be a while unfortunately