Fix the bad packets! Naughty naughty packets!
This commit is contained in:
parent
340d82812a
commit
ac5e8dbaff
@ -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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user