No more errors in the server console, but a certain mod is still breaking the rules.
This commit is contained in:
parent
9b1f1d9a50
commit
7974ccc0bf
@ -59,6 +59,7 @@ public class ServerConnection extends GenericConnection implements Server
|
||||
stream.readPacket();
|
||||
|
||||
byte[] loginResponse = null;
|
||||
boolean forgeIHateYou = false;
|
||||
loop:
|
||||
while ( true )
|
||||
{
|
||||
@ -69,9 +70,13 @@ public class ServerConnection extends GenericConnection implements Server
|
||||
case 0x01:
|
||||
break loop;
|
||||
case 0xFA:
|
||||
for ( PacketFAPluginMessage message : user.loginMessages )
|
||||
if ( !forgeIHateYou )
|
||||
{
|
||||
stream.write( message );
|
||||
for ( PacketFAPluginMessage message : user.loginMessages )
|
||||
{
|
||||
stream.write( message );
|
||||
}
|
||||
forgeIHateYou = true;
|
||||
}
|
||||
break;
|
||||
case 0xFF:
|
||||
|
Loading…
Reference in New Issue
Block a user