mirror of
https://github.com/cuberite/cuberite.git
synced 2025-01-07 03:16:55 +08:00
fixed build (#5181)
This commit is contained in:
parent
befe132861
commit
8d10f1b26a
@ -459,10 +459,9 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile)
|
||||
"94|5|false; 97|5|false; 100|5|false; "
|
||||
"103|6|false");
|
||||
int Radius = a_IniFile.GetValueSetI("Generator", "ObsidianPillarsRadius", 43);
|
||||
// The init method is called manually because the linker can't access the cChunkDef::Width in the constructor
|
||||
auto Gen = new cEnderDragonFightStructuresGen(m_Seed);
|
||||
auto Gen = std::make_unique<cEnderDragonFightStructuresGen>(m_Seed);
|
||||
Gen->Init(Pillars, Radius);
|
||||
m_FinishGens.push_back(cFinishGenPtr(Gen));
|
||||
m_FinishGens.push_back(std::move(Gen));
|
||||
}
|
||||
else if (NoCaseCompare(finisher, "GlowStone") == 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user