SkriptLang / skript-reflect

Powerful reflection utilities for Skript.
MIT License
56 stars 19 forks source link

Make EffReturn be ignored if not in correct section #78

Open TheLimeGlass opened 4 months ago

TheLimeGlass commented 4 months ago

Make EffReturn be ignored if not in correct section. Currently skript-reflect will override Skript's own EffReturn. Even when in a function Structure.

To avoid this, and any other possible causes, skript-reflect should just silently return false and not error, because erroring makes Skript stop searching for possible syntaxes.

APickledWalrus commented 2 months ago

Do you think it would be better to instead only print this error when not in a StructFunction?