It is intentional there is no Event<T>.unregister? #2360
Unanswered
FieryRobot
asked this question in
Mod Dev Support
Replies: 2 comments
-
I think it is intentional. In your case for example, the added check once per tick is completely negligible, so I would recommend not worrying about it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
See #180 for a discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can register for, say, world ticks, but I cannot seem to unregister. In my case, the ideal would be that if I know no clients need a particular feature of my mod that relies on server ticks to work, I could just unregister it to be completely out of the picture. Sure, I could just avoid doing the work in my tick handler, but it'd be better to not call it at all. Is there a reason it doesn't exist? Am I missing it?
Beta Was this translation helpful? Give feedback.
All reactions