This commit is contained in:
Tnze
2019-10-20 14:19:38 +08:00
parent 7d31acbb48
commit 9576aa2823
2 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,7 @@ type Slot struct {
Present bool
ItemID int32
Count int8
NBT struct {
}
NBT interface{}
}
//Decode implement packet.FieldDecoder interface

View File

@ -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