feat: Added support for a chunk's pos to be used as a key
This commit is contained in:
		@@ -35,6 +35,10 @@ type ChunkPos struct {
 | 
			
		||||
	Z int `json:"z"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (cp ChunkPos) MarshalText() ([]byte, error) {
 | 
			
		||||
	return []byte(fmt.Sprintf("%d %d", cp.Z, cp.Z)), nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (cp ChunkPos) ToFileName() string {
 | 
			
		||||
	return fmt.Sprintf("p.%d.%d.chunk", cp.X, cp.Z)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user