Use google's UUID lib

This commit is contained in:
Tnze
2019-07-28 19:14:51 +08:00
parent e5c32df53b
commit 9a960ee868
5 changed files with 7 additions and 17 deletions

View File

@ -1,6 +1,7 @@
package packet
import (
"github.com/google/uuid"
"io"
"math"
@ -70,7 +71,7 @@ type (
Angle int8
//UUID encoded as an unsigned 128-bit integer
UUID [16]byte
UUID = uuid.UUID
//NBT encode a value as Named Binary Tag
NBT struct {