Added slabs
This commit is contained in:
@@ -17,7 +17,8 @@ const (
|
||||
type Chunk struct {
|
||||
X, Z int // Chunk coordinate in global coordinate (y is always zero)
|
||||
|
||||
Id, Aux [ChunkSizeX][ChunkSizeY][ChunkSizeZ]uint16
|
||||
Id [ChunkSizeX][ChunkSizeY][ChunkSizeZ]uint16
|
||||
Aux [ChunkSizeX][ChunkSizeY][ChunkSizeZ]int16
|
||||
|
||||
// render data kept unexported (therefore excluded from gob encoding)
|
||||
renderChanged bool
|
||||
@@ -40,7 +41,7 @@ func (c *Chunk) SetChunkID(x, z int) {
|
||||
|
||||
func (c *Chunk) SetBlock(x, y, z int, id, aux int) {
|
||||
c.Id[x][y][z] = uint16(id)
|
||||
c.Aux[x][y][z] = uint16(aux)
|
||||
c.Aux[x][y][z] = int16(aux)
|
||||
c.renderChanged = true
|
||||
|
||||
switch x {
|
||||
|
||||
Reference in New Issue
Block a user