Skip to content

Commit

Permalink
block/deepslate.go: Register all axes.
Browse files Browse the repository at this point in the history
Fixes #814.
  • Loading branch information
Sandertv committed Sep 30, 2023
1 parent 2868284 commit df191b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/block/deepslate.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ func (d Deepslate) EncodeBlock() (string, map[string]any) {
// allDeepslate returns a list of all deepslate block variants.
func allDeepslate() (s []world.Block) {
for _, t := range DeepslateTypes() {
s = append(s, Deepslate{Type: t})
for _, axis := range cube.Axes() {
s = append(s, Deepslate{Type: t, Axis: axis})
}
}
return
}

0 comments on commit df191b3

Please sign in to comment.