From ac5cb3ee9eb1067f875cfb7b8315fe293151e188 Mon Sep 17 00:00:00 2001 From: DBot Date: Tue, 5 Sep 2017 18:08:01 +0700 Subject: [PATCH] Added editor config --- .editorconfig | 7 +++++++ .vscode/settings.json | 8 ++++++++ lua/pac3/core/client/parts/camera.lua | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .editorconfig create mode 100644 .vscode/settings.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..fef19e5d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,7 @@ + +root = true +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_style = tab diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..d3b8b318 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "editor.tabSize": 4, + "editor.insertSpaces": false, + "editor.detectIndentation": false, + "editor.trimAutoWhitespace": true, + "files.trimTrailingWhitespace": true, + "files.eol": "\n" +} \ No newline at end of file diff --git a/lua/pac3/core/client/parts/camera.lua b/lua/pac3/core/client/parts/camera.lua index 7bfb7f5a..6f4cc1be 100644 --- a/lua/pac3/core/client/parts/camera.lua +++ b/lua/pac3/core/client/parts/camera.lua @@ -17,7 +17,7 @@ pac.EndStorableVars() function PART:Initialize() local owner = self:GetOwner(true) - if owner ~= NULL then + if owner ~= NULL then owner.pac_cameras = owner.pac_cameras or {} owner.pac_cameras[self] = self end