mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-22 15:47:57 -05:00
Fix incorrect check in GlobalReceiverRegistry (#2363)
This commit is contained in:
parent
c54bb47e4e
commit
442de8b862
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ public final class GlobalReceiverRegistry<H> {
|
|||
try {
|
||||
final boolean replaced = this.handlers.putIfAbsent(channelName, handler) == null;
|
||||
|
||||
if (!replaced) {
|
||||
if (replaced) {
|
||||
this.handleRegistration(channelName, handler);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue