Merge pull request #3743 from ZacSharp/patch-11

Fix Registry.unregister
This commit is contained in:
leijurv 2022-12-24 00:05:42 -08:00 committed by GitHub
commit e2538abcb1
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);