Skip to content

Commit

Permalink
block/vine.go: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Dec 20, 2024
1 parent 02bfd1b commit fa55fbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/block/vine.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ func (v Vines) RandomTick(pos cube.Pos, tx *world.Tx, r *rand.Rand) {
}
newVines := Vines{}
for _, f := range cube.HorizontalFaces() {
if r.Intn(2) == 0 && v.canSpreadTo(tx, selectedPos.Side(f)) {
newVines = newVines.SetAttachment(f.Direction(), v.Attachment(f.Direction()))
if r.Intn(2) == 0 && v.Attachment(f.Direction()) && v.canSpreadTo(tx, selectedPos.Side(f)) {
newVines = newVines.SetAttachment(f.Direction(), true)
}
}
if len(newVines.Attachments()) > 0 {
Expand Down

0 comments on commit fa55fbf

Please sign in to comment.