update to 1.18.2 & fix bug in snbt encoding
This commit is contained in:
@ -94,7 +94,7 @@ func (m *StringifiedMessage) encode(d *Decoder, sb *strings.Builder, tagType byt
|
||||
return err
|
||||
case TagInt:
|
||||
i, err := d.readInt32()
|
||||
sb.WriteString(strconv.FormatInt(int64(i), 10) + "I")
|
||||
sb.WriteString(strconv.FormatInt(int64(i), 10))
|
||||
return err
|
||||
case TagFloat:
|
||||
i, err := d.readInt32()
|
||||
|
3
nbt/snbt_encode_test.go
Normal file
3
nbt/snbt_encode_test.go
Normal file
@ -0,0 +1,3 @@
|
||||
package nbt
|
||||
|
||||
//TODO: Test SNBT encode
|
Reference in New Issue
Block a user