Added a default value to WaterSimulator, LavaSimulator and RedstoneSimulator.
This commit is contained in:
parent
5a1f9e5044
commit
f47765dcbd
@ -3176,7 +3176,7 @@ void cWorld::SetChunkAlwaysTicked(int a_ChunkX, int a_ChunkZ, bool a_AlwaysTicke
|
|||||||
|
|
||||||
cRedstoneSimulator * cWorld::InitializeRedstoneSimulator(cIniFile & a_IniFile)
|
cRedstoneSimulator * cWorld::InitializeRedstoneSimulator(cIniFile & a_IniFile)
|
||||||
{
|
{
|
||||||
AString SimulatorName = a_IniFile.GetValueSet("Physics", "RedstoneSimulator", "");
|
AString SimulatorName = a_IniFile.GetValueSet("Physics", "RedstoneSimulator", "incremental");
|
||||||
|
|
||||||
if (SimulatorName.empty())
|
if (SimulatorName.empty())
|
||||||
{
|
{
|
||||||
@ -3210,7 +3210,7 @@ cFluidSimulator * cWorld::InitializeFluidSimulator(cIniFile & a_IniFile, const c
|
|||||||
Printf(SimulatorNameKey, "%sSimulator", a_FluidName);
|
Printf(SimulatorNameKey, "%sSimulator", a_FluidName);
|
||||||
AString SimulatorSectionName;
|
AString SimulatorSectionName;
|
||||||
Printf(SimulatorSectionName, "%sSimulator", a_FluidName);
|
Printf(SimulatorSectionName, "%sSimulator", a_FluidName);
|
||||||
AString SimulatorName = a_IniFile.GetValueSet("Physics", SimulatorNameKey, "");
|
AString SimulatorName = a_IniFile.GetValueSet("Physics", SimulatorNameKey, "Vanilla");
|
||||||
if (SimulatorName.empty())
|
if (SimulatorName.empty())
|
||||||
{
|
{
|
||||||
LOGWARNING("[Physics] %s not present or empty in %s, using the default of \"Vanilla\".", SimulatorNameKey.c_str(), GetIniFileName().c_str());
|
LOGWARNING("[Physics] %s not present or empty in %s, using the default of \"Vanilla\".", SimulatorNameKey.c_str(), GetIniFileName().c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user