1
0
Fork 0

World: Add check for unknown RedstoneSimulator (#3496)

This commit is contained in:
Fabian Stein 2016-12-29 00:41:20 +01:00 committed by Mattes D
parent b3b723b453
commit 90fcf9814f
1 changed files with 5 additions and 0 deletions

View File

@ -3862,6 +3862,11 @@ cRedstoneSimulator * cWorld::InitializeRedstoneSimulator(cIniFile & a_IniFile)
{
res = new cRedstoneNoopSimulator(*this);
}
else
{
LOGWARNING("[Physics] Unknown RedstoneSimulator \"%s\" in %s, using the default of \"Incremental\".", SimulatorName.c_str(), GetIniFileName().c_str());
res = new cIncrementalRedstoneSimulator(*this);
}
m_SimulatorManager->RegisterSimulator(res, 2 /* Two game ticks is a redstone tick */);