mirror of
https://github.com/FabricMC/fabric.git
synced 2025-07-28 15:09:35 -04:00
Check channels the server can receive, not channels the client can (#1224)
This commit is contained in:
parent
be155ae2b1
commit
64c503a93e
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ import net.fabricmc.fabric.api.network.PacketRegistry;
|
|||
public class ClientSidePacketRegistryImpl implements ClientSidePacketRegistry, PacketRegistry {
|
||||
@Override
|
||||
public boolean canServerReceive(Identifier id) {
|
||||
return ClientPlayNetworking.getReceived().contains(id);
|
||||
return ClientPlayNetworking.getSendable().contains(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue