Skip to content

Commit

Permalink
block/ladder.go: Added a commend about faces and removed their hardco…
Browse files Browse the repository at this point in the history
…ding
  • Loading branch information
Gewinum committed Aug 3, 2024
1 parent f523ea9 commit 042677c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/block/ladder.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Ladder struct {
transparent
sourceWaterDisplacer

// Facing is the side of the block the ladder is currently attached to.
// Facing is the side of the block the ladder is currently attached to. It shouldn't be either FaceDown or FaceUp
Facing cube.Face
}

Expand Down Expand Up @@ -96,8 +96,8 @@ func (l Ladder) Model() world.BlockModel {

// allLadders ...
func allLadders() (b []world.Block) {
for i := cube.Face(0); i <= 5; i++ {
b = append(b, Ladder{Facing: i})
for _, f := range cube.Faces() {
b = append(b, Ladder{Facing: f})
}
return
}

0 comments on commit 042677c

Please sign in to comment.