Skip to content
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

Stronghold ruins fix #2333

Merged
merged 3 commits into from
Jan 17, 2025
Merged

Conversation

Sleepy-Horse
Copy link

Fix the bug, where KnightStronghold ruins' height couldn't be > 1.
Reduce copy-paste in child classes of StructurePiece.BlockSelector.
Use float type instead of int for weights in WorldUtil.getRandomElementWithWeights().

Before:
image
After:
image

Sleepy-Horse and others added 3 commits January 15, 2025 23:45
Allow placing blocks in ruins above all StrongholdStones and KnightStones. Simplify the logic of if statement.
Generalize blockSelectors into 1 class, SimpleRandomBlockSelector, to reduce copy-paste. Add function to get the list of all possible placeable states in SimpleRandomBlockSelector.
Use functions in SimpleRandomBlockSelectorFactory to get all blockSelectors.
@Sleepy-Horse Sleepy-Horse merged commit 097cdea into 1.21.1 Jan 17, 2025
1 of 2 checks passed
@Sleepy-Horse Sleepy-Horse deleted the no-build/1.21.1-stronghold-ruins-fix branch January 17, 2025 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants