mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-03 10:39:57 -04:00
Fix incorrect check in GlobalReceiverRegistry (#2363)
This commit is contained in:
parent
41a02c8a4e
commit
2d30af4b7a
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…
Add table
Reference in a new issue