#Unexpected return value

1 messages · Page 1 of 1 (latest)

quaint knot
#

Hey, I'm coding a minecraft plugin in java, and I encountered the error shown in the picture with my code (also in the picture)
Thanks for any help.

rugged notchBOT
#

<@&987246652869971988> please have a look, thanks.

quaint knot
#

the picture

ornate saddle
#

you cant return from the for each

#

i would replace it with a normal for loop

#

intellij should give you the option to do it if you pull up the context actions after clicking the forEach

quaint knot
#

Okay

#

Thanks. No errors now. Will test and see if I messed up something else too lol

burnt mantle
earnest lynx
oak palm
#

(Because of terrible API 😔)