mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-22 23:58:02 -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 {
|
try {
|
||||||
final boolean replaced = this.handlers.putIfAbsent(channelName, handler) == null;
|
final boolean replaced = this.handlers.putIfAbsent(channelName, handler) == null;
|
||||||
|
|
||||||
if (!replaced) {
|
if (replaced) {
|
||||||
this.handleRegistration(channelName, handler);
|
this.handleRegistration(channelName, handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue