merge upstream

This commit is contained in:
Fireblade committed 2026-07-05 19:48:38 -04:00
1 parent 878198d6f1
commit 3f51fcb01f
85 files changed
+2097 -914

No files matched your search

+6
View File
@@ -24,6 +24,12 @@ bool BonusChestFeature::place(Level *level, Random *random, int x, int y, int z)
bool BonusChestFeature::place(Level *level, Random *random, int x, int y, int z, bool force)
{
// check if level is corrupted first
if (level == nullptr || random == nullptr)
{
return false;
}
if (!level->isNew) return false;
//Will only spawn a bonus chest if the world is new and has never been saved.
if (level->isNew)
{