mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-18 06:38:31 +01:00
Use cleaner equals check and actually set member field
This commit is contained in:
parent
0b0d09427d
commit
d1dd7379b1
protocol/src/main/java/net/md_5/bungee/protocol/packet
proxy/src/main/java/net/md_5/bungee
@ -36,7 +36,8 @@ public class PacketD1Team extends DefinedPacket
|
||||
public PacketD1Team(String name)
|
||||
{
|
||||
this();
|
||||
mode = 1;
|
||||
this.name = name;
|
||||
this.mode = 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -266,7 +266,7 @@ public class ServerConnector extends PacketHandler
|
||||
@Override
|
||||
public void handle(PacketFAPluginMessage pluginMessage) throws Exception
|
||||
{
|
||||
if ( pluginMessage.getData().length == 0 && pluginMessage.getTag().equals( "BungeeCord" ) )
|
||||
if ( pluginMessage.equals( PacketConstants.I_AM_BUNGEE) )
|
||||
{
|
||||
throw new IllegalStateException( "May not connect to another BungeCord!" );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user