fix codecs

This commit is contained in:
2026-02-21 21:02:48 +08:00
parent da87c54494
commit b47183ba63
8 changed files with 181 additions and 178 deletions
+5 -2
View File
@@ -1,6 +1,9 @@
package protocol
import "math"
import (
"fmt"
"math"
)
type Position [3]int32
@@ -43,7 +46,7 @@ func (p Position) Clone() Position {
}
func (p Position) String() string {
return "(" + string(p[0]) + ", " + string(p[1]) + ", " + string(p[2]) + ")"
return fmt.Sprintf("(%d, %d, %d)", p[0], p[1], p[2])
}
func (p Position) Equals(other Position) bool {