Fix the bad packets! Naughty naughty packets!

This commit is contained in:
md_5 2013-06-03 17:55:00 +10:00
parent 340d82812a
commit ac5e8dbaff

View File

@ -29,7 +29,7 @@ public class PacketCFScoreboardScore extends DefinedPacket
{ {
itemName = readString( buf ); itemName = readString( buf );
action = buf.readByte(); action = buf.readByte();
if ( action == 0 ) if ( action != 1 )
{ {
scoreName = readString( buf ); scoreName = readString( buf );
value = buf.readInt(); value = buf.readInt();
@ -41,7 +41,7 @@ public class PacketCFScoreboardScore extends DefinedPacket
{ {
writeString( itemName, buf ); writeString( itemName, buf );
buf.writeByte( action ); buf.writeByte( action );
if ( action == 0 ) if ( action != 1 )
{ {
writeString( scoreName, buf ); writeString( scoreName, buf );
buf.writeInt( value ); buf.writeInt( value );