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 24, 2024
1 parent 5f44366 commit 2e6f480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/block/vine.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (v Vines) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world.
func (v Vines) NeighbourUpdateTick(pos, _ cube.Pos, tx *world.Tx) {
above, updated := tx.Block(pos.Side(cube.FaceUp)), false
for _, d := range v.Attachments() {
if _, ok := tx.Block(pos.Side(d.Face())).Model().(model.Solid); !ok {
if !v.canSpreadTo(tx, pos.Side(d.Face())) {
if o, ok := above.(Vines); !ok || !o.Attachment(d) {
//noinspection GoAssignmentToReceiver
v = v.SetAttachment(d, false)
Expand Down

0 comments on commit 2e6f480

Please sign in to comment.