-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented vines #578
base: master
Are you sure you want to change the base?
Implemented vines #578
Conversation
// Vines can't spread upwards unless there is air. | ||
return | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the wiki, there can not be more than 4 vines in a 9x9x3 area to spread upwards
} else if vines { | ||
var changed bool | ||
for _, f := range cube.HorizontalFaces() { | ||
if r.Intn(2) == 0 && v.Attachment(f.Direction()) { | ||
newVines, changed = newVines.SetAttachment(f.Direction(), true), true | ||
} | ||
} | ||
if changed { | ||
w.SetBlock(selectedPos, newVines, nil) | ||
} | ||
return | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check this behavior as it does not match what the wiki says for downwards spread to non-air blocks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What exactly?
Closes #572.