wiremod / wire

Garry's Mod add-on that allows users to wire up components in order to make more elaborate automatic and user-controlled contraptions.
http://www.wiremod.com
Apache License 2.0
553 stars 332 forks source link

Fix includes with errors in main file would lock the E2 editor #3052

Closed Denneisk closed 5 months ago

Denneisk commented 5 months ago

This error was caused because the local directives can be PPDirective or Error[] type, and this was not properly accounted for in the later Include function calls. It's likely this was an oversight as the code suggests the function would return early if it errored. This adds a return to that section to follow that logic.

Fixes #3043