Fix score add definition
This commit is contained in:
parent
6bb089074e
commit
34f4bae923
@ -19,6 +19,7 @@ abstract class Instruction
|
||||
static final Instruction LONG = new Jump( 8 );
|
||||
static final Instruction METADATA = new MetaData();
|
||||
static final Instruction OPTIONAL_MOTION = new OptionalMotion();
|
||||
static final Instruction SCORE = new Score();
|
||||
static final Instruction SHORT = new Jump( 2 );
|
||||
static final Instruction SHORT_BYTE = new ShortHeader( BYTE );
|
||||
static final Instruction SHORT_ITEM = new ShortHeader( ITEM );
|
||||
|
@ -0,0 +1,19 @@
|
||||
package net.md_5.bungee.protocol.netty;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import java.io.IOException;
|
||||
|
||||
public class Score extends Instruction
|
||||
{
|
||||
|
||||
@Override
|
||||
void read(ByteBuf in) throws IOException
|
||||
{
|
||||
STRING.read( in );
|
||||
if ( in.readByte() == 0 )
|
||||
{
|
||||
STRING.read( in );
|
||||
INT.read( in );
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user