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

View File

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