fix: attempt to retrieve online from offline player for perm attachments#3182
fix: attempt to retrieve online from offline player for perm attachments#3182NotMyFault merged 3 commits intomainfrom
Conversation
|
@dordsor21 by offline player i meant player instance that returns false for isOnline(), not necessarily OfflinePlayer instance. |
416158a to
0284432
Compare
Altered |
|
I don't think returning null here is a good idea, especially if function isn't marked with nullable itself. I think it's better to return noop attachment or proper attachment but not add it to the hashmap. |
The attachment is only used for setting permissions (e.g. when toggling bypass) so null is acceptable here. I've marked the method as nullable as well |
|
Could this PR be merged now? |
PierreSchwang
left a comment
There was a problem hiding this comment.
I hope the WeakMap really works ^^'

No description provided.