may fix #28
This commit is contained in:
@ -16,8 +16,7 @@ type Slot struct {
|
||||
Present bool
|
||||
ItemID int32
|
||||
Count int8
|
||||
NBT struct {
|
||||
}
|
||||
NBT interface{}
|
||||
}
|
||||
|
||||
//Decode implement packet.FieldDecoder interface
|
||||
|
@ -81,6 +81,7 @@ func (r *RCONConn) ReadPacket() (RequestID, Type int32, Payload string, err erro
|
||||
|
||||
func (r *RCONConn) WritePacket(RequestID, Type int32, Payload string) error {
|
||||
buf := new(bytes.Buffer)
|
||||
|
||||
for _, v := range []interface{}{
|
||||
int32(4 + 4 + len(Payload) + 2), //Length
|
||||
RequestID, //Request ID
|
||||
|
Reference in New Issue
Block a user