Fix Registry.unregister

This commit is contained in:
ZacSharp 2022-11-28 23:07:30 +01:00 committed by GitHub
parent 93501248cd
commit e1095962a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ public class Registry<V> {
* @param entry The entry to unregister. * @param entry The entry to unregister.
*/ */
public void unregister(V entry) { public void unregister(V entry) {
if (registered(entry)) { if (!registered(entry)) {
return; return;
} }
_entries.remove(entry); _entries.remove(entry);