From a4874270f791fae8745cac23e153c59bef81bd1e Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Fri, 31 Mar 2017 22:29:34 +0200 Subject: Fix clang-format Columns Width Also fix l_client.cpp/h and remove them from whitelist --- src/script/lua_api/l_client.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/script/lua_api/l_client.cpp') diff --git a/src/script/lua_api/l_client.cpp b/src/script/lua_api/l_client.cpp index 52c7f6f30..7cb89188d 100644 --- a/src/script/lua_api/l_client.cpp +++ b/src/script/lua_api/l_client.cpp @@ -19,13 +19,13 @@ with this program; if not, write to the Free Software Foundation, Inc., */ #include "l_client.h" -#include "l_internal.h" -#include "util/string.h" +#include "common/c_content.h" +#include "common/c_converter.h" #include "cpp_api/s_base.h" #include "gettext.h" -#include "common/c_converter.h" -#include "common/c_content.h" +#include "l_internal.h" #include "lua_api/l_item.h" +#include "util/string.h" int ModApiClient::l_get_current_modname(lua_State *L) { @@ -88,7 +88,7 @@ int ModApiClient::l_get_player_names(lua_State *L) // show_formspec(formspec) int ModApiClient::l_show_formspec(lua_State *L) { - if ( !lua_isstring(L, 1) || !lua_isstring(L, 2) ) + if (!lua_isstring(L, 1) || !lua_isstring(L, 2)) return 0; ClientEvent event; @@ -142,8 +142,7 @@ int ModApiClient::l_get_node_or_nil(lua_State *L) if (pos_ok) { // Return node pushnode(L, n, getClient(L)->ndef()); - } - else { + } else { lua_pushnil(L); } return 1; -- cgit v1.2.3