-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move player finders
to a proper place & optimize them
#2161
base: master
Are you sure you want to change the base?
Conversation
Are you sure this cannot have a client side side effect just like ents.Iterator, invalid entities that even IsValid check doesn't fix |
Most likely it should never happen as this just clears the certain player from stored data. As far as I know, these two hooks shouldn't provide invalid players and only called once (regarding players). |
Let's have another one of those again, yay! #2124 ... .. You want to optimize "player finders"? My advice is to stop doing it. |
Why such complaining, geeky, cocky manner? You could leave straight theses and arguments without some kind of blight. What UniqueID
Yes, it's a fact. But I'll leave removing/remaking BotsWhat are constructive use cases of
It more looks like a cavil.
|
I thought it would be better to move these functions to a specialized place.
There was even a comment about it there.
-- These are totally in the wrong place.
Also, optimized them by using bidirectional mapping between IDs and players for easier fetching and cleanup.