Skip to content

Add way to disable event, and add return support in events #3691

Description

@AlexALX

Describe the feature

Basically what title says.

New event system lacking way to DISABLE its execution at all when not needed, this is essential for tick event. so when there is no job i can just disable its execution during idle, with on runontick i could disable it when i want.

Second thing - we can't use return inside event function, it says like "return called outside of function". must use exit() instead.

Thanks.

What problem does this solve?

No exit() usage in events, and disable events when not need to fire (save ops).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature requestRequest to add or improve something in Wiremod

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions