Skip to content

Commit

Permalink
block/deepslate.go: Only register axes for cobbled deepslate.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Sep 30, 2023
1 parent 2802ed6 commit d519f75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/block/deepslate.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ 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() {
for _, axis := range cube.Axes() {
axes := []cube.Axis{0}
if t == NormalDeepslate() {
axes = cube.Axes()
}
for _, axis := range axes {
s = append(s, Deepslate{Type: t, Axis: axis})
}
}
Expand Down

0 comments on commit d519f75

Please sign in to comment.