Skip to content

Commit d518c0d

Browse files
committed
fix: formatting
1 parent 626f01e commit d518c0d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/TLuaEngine.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -945,15 +945,13 @@ TLuaEngine::StateThreadData::StateThreadData(const std::string& Name, TLuaStateI
945945
MPTable.set_function("CancelEventTimer", [&](const std::string& EventName) {
946946
mEngine->CancelEventTimers(EventName, mStateId);
947947
});
948-
949948
if (mDisableMPSet) {
950-
MPTable.set_function("Set", [this](int ConfigID, sol::object NewValue){
951-
beammp_lua_errorf("A script ({}) tried to call MP.Set to change setting '{}' but this was blocked by your server provider.", mStateId, GetSettingName(ConfigID));
952-
});
949+
MPTable.set_function("Set", [this](int ConfigID, sol::object NewValue) {
950+
beammp_lua_errorf("A script ({}) tried to call MP.Set to change setting '{}' but this was blocked by your server provider.", mStateId, GetSettingName(ConfigID));
951+
});
953952
} else {
954953
MPTable.set_function("Set", &LuaAPI::MP::Set);
955954
}
956-
957955
MPTable.set_function("Get", &LuaAPI::MP::Get);
958956

959957
auto UtilTable = StateView.create_named_table("Util");

0 commit comments

Comments
 (0)