mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-19 20:15:44 +01:00
merge upstream
This commit is contained in:
85 files changed
+2097
-914
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user