Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-24 15:20:35 +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.
|
// the client.
|
||||||
if (PluginMessageUtil.isRegister(packet)) {
|
if (PluginMessageUtil.isRegister(packet)) {
|
||||||
serverConn.getPlayer().getKnownChannels().addAll(PluginMessageUtil.getChannels(packet));
|
serverConn.getPlayer().getKnownChannels().addAll(PluginMessageUtil.getChannels(packet));
|
||||||
serverConn.getPlayer().getMinecraftConnection().write(packet);
|
return false;
|
||||||
return true;
|
|
||||||
} else if (PluginMessageUtil.isUnregister(packet)) {
|
} else if (PluginMessageUtil.isUnregister(packet)) {
|
||||||
serverConn.getPlayer().getKnownChannels().removeAll(PluginMessageUtil.getChannels(packet));
|
serverConn.getPlayer().getKnownChannels().removeAll(PluginMessageUtil.getChannels(packet));
|
||||||
serverConn.getPlayer().getMinecraftConnection().write(packet);
|
return false;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PluginMessageUtil.isMcBrand(packet)) {
|
if (PluginMessageUtil.isMcBrand(packet)) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren