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

Rename the LootTable#shuffle method to spreadStacks #4071

Merged
merged 1 commit into from
Dec 28, 2024

Conversation

haykam821
Copy link
Contributor

This pull request changes fixes the misleading name of the LootTable#shuffle method, which is primarily meant to change the distribution of items in stacks when generating container loot. While this method does shuffle the resulting list, shuffling is also a side effect of ensuring the stack distribution is random as opposed to shuffling the input stacks, and other steps of the loot generation process shuffle the stacks themselves anyways.

@haykam821 haykam821 requested a review from a team December 27, 2024 19:48
@haykam821 haykam821 added refactor A PR that renames existing names. release A PR that targets a release version of Minecraft labels Dec 27, 2024
@Shnupbups Shnupbups merged commit 29d78ca into FabricMC:1.21.4 Dec 28, 2024
5 checks passed
@haykam821 haykam821 deleted the loottable-spreadstacks branch December 28, 2024 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor A PR that renames existing names. release A PR that targets a release version of Minecraft
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants