This commit is contained in:
Tnze
2022-11-16 23:32:33 +08:00
parent 59f946302b
commit 64667826d0
11 changed files with 22 additions and 21 deletions

View File

@ -404,7 +404,7 @@ func (d *Double) ReadFrom(r io.Reader) (n int64, err error) {
return
}
//NBT encode a value as Named Binary Tag
// NBT encode a value as Named Binary Tag
func NBT(v interface{}, optionalTagName ...string) Field {
if len(optionalTagName) > 0 {
return nbtField{V: v, FieldName: optionalTagName[0]}