Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-06 00:00:47 +01:00
Clean this up a bit
Dieser Commit ist enthalten in:
Ursprung
a21eaa085a
Commit
4ab02cb636
@ -95,12 +95,10 @@ public class BackendPlaySessionHandler implements MinecraftSessionHandler {
|
||||
// the client.
|
||||
if (PluginMessageUtil.isRegister(packet)) {
|
||||
serverConn.getPlayer().getKnownChannels().addAll(PluginMessageUtil.getChannels(packet));
|
||||
serverConn.getPlayer().getMinecraftConnection().write(packet);
|
||||
return true;
|
||||
return false;
|
||||
} else if (PluginMessageUtil.isUnregister(packet)) {
|
||||
serverConn.getPlayer().getKnownChannels().removeAll(PluginMessageUtil.getChannels(packet));
|
||||
serverConn.getPlayer().getMinecraftConnection().write(packet);
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (PluginMessageUtil.isMcBrand(packet)) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren