From 90fcf9814fe49e5d2a2daccd93ffad55628356e0 Mon Sep 17 00:00:00 2001 From: Fabian Stein Date: Thu, 29 Dec 2016 00:41:20 +0100 Subject: [PATCH] World: Add check for unknown RedstoneSimulator (#3496) --- src/World.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/World.cpp b/src/World.cpp index e66b52281..a9f9bfbed 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -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 */);