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

Clean up usages of Random in chests #546

Merged
merged 5 commits into from
Mar 19, 2024

Conversation

BenCheung0422
Copy link
Member

@BenCheung0422 BenCheung0422 commented Jul 28, 2023

When populating chests, as it involves world generation, it should also include the world generation random provider when using randoms. This fixes this problem. Unused Inventory#tryAdd methods are also removed. All chests should be the same for the same seed in initialization now.

@Litorom
Copy link
Member

Litorom commented Dec 31, 2023

This looks like it fixes another bug I discovered today, the dungeon chests in structures generate empty. Please fix your code and test and I’ll merge it

BenCheung0422 and others added 3 commits February 26, 2024 22:23
# Conflicts:
#	src/client/java/minicraft/entity/furniture/DungeonChest.java
#	src/client/java/minicraft/item/Inventory.java
#	src/client/java/minicraft/level/Structure.java
#	src/client/java/minicraft/saveload/LegacyLoad.java
#	src/client/java/minicraft/saveload/Load.java
@Litorom Litorom merged commit 3fda8f1 into MinicraftPlus:main Mar 19, 2024
1 check passed
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.

3 participants