From dcd618f27e4a0a3764f8b8d556dba75e9dee9530 Mon Sep 17 00:00:00 2001 From: realpack Date: Sun, 30 Jun 2019 21:27:37 +1000 Subject: [PATCH] Remove superfluous tabs and white spaces --- lua/entities/base_wire_entity.lua | 2 +- lua/entities/gmod_wire_cameracontroller.lua | 2 +- lua/entities/gmod_wire_dhdd.lua | 2 +- lua/entities/gmod_wire_digitalscreen/init.lua | 2 +- lua/entities/gmod_wire_expression2/core/constraint.lua | 2 +- lua/entities/gmod_wire_expression2/core/custom/prop.lua | 4 ++-- lua/entities/gmod_wire_hologram.lua | 8 ++++---- lua/entities/gmod_wire_vectorthruster.lua | 6 +++--- lua/wire/client/rendertarget_fix.lua | 2 +- lua/wire/client/text_editor/texteditor.lua | 4 ++-- lua/wire/client/text_editor/wire_expression2_editor.lua | 2 +- lua/wire/gates/highspeed.lua | 2 +- lua/wire/server/wirelib.lua | 2 +- lua/wire/stools/egp.lua | 2 +- 14 files changed, 21 insertions(+), 21 deletions(-) diff --git a/lua/entities/base_wire_entity.lua b/lua/entities/base_wire_entity.lua index 7c292835b6..4da5361262 100644 --- a/lua/entities/base_wire_entity.lua +++ b/lua/entities/base_wire_entity.lua @@ -372,7 +372,7 @@ function ENT:ApplyDupeInfo(ply, ent, info, GetEntByID) end function ENT:PreEntityCopy() - duplicator.ClearEntityModifier(self, "WireDupeInfo") + duplicator.ClearEntityModifier(self, "WireDupeInfo") -- build the DupeInfo table and save it as an entity mod local DupeInfo = self:BuildDupeInfo() if DupeInfo then diff --git a/lua/entities/gmod_wire_cameracontroller.lua b/lua/entities/gmod_wire_cameracontroller.lua index 88a0fd065f..6cae073a4d 100644 --- a/lua/entities/gmod_wire_cameracontroller.lua +++ b/lua/entities/gmod_wire_cameracontroller.lua @@ -910,7 +910,7 @@ function ENT:WriteCell(address, value) self:TriggerInput(key, value) return true else - value = tobool( value ) + value = tobool( value ) if self[key] ~= value then self[key] = value self.NeedsSyncSettings = true diff --git a/lua/entities/gmod_wire_dhdd.lua b/lua/entities/gmod_wire_dhdd.lua index 71340540a1..5a2fc53c7f 100644 --- a/lua/entities/gmod_wire_dhdd.lua +++ b/lua/entities/gmod_wire_dhdd.lua @@ -49,7 +49,7 @@ end function ENT:Think() self.BaseClass.Think( self ) - + --[[ The workaround using WantsUpdate should not be required. However, the server crashes (for no reason whatsoever) if you diff --git a/lua/entities/gmod_wire_digitalscreen/init.lua b/lua/entities/gmod_wire_digitalscreen/init.lua index 8a97018e70..32de7e5778 100644 --- a/lua/entities/gmod_wire_digitalscreen/init.lua +++ b/lua/entities/gmod_wire_digitalscreen/init.lua @@ -110,7 +110,7 @@ local function buildData(datastr, memory, pixelbit, range, bytesRemaining) datastr[lengthIndex] = lengthStr[1] range.length = iend - i range.start = i - + return bytesRemaining end diff --git a/lua/entities/gmod_wire_expression2/core/constraint.lua b/lua/entities/gmod_wire_expression2/core/constraint.lua index dc33cf77a0..2436caed42 100644 --- a/lua/entities/gmod_wire_expression2/core/constraint.lua +++ b/lua/entities/gmod_wire_expression2/core/constraint.lua @@ -30,7 +30,7 @@ end 'Parented'/'Parents'/'Parent' 'Wires'/'Wire' or any constraint type names such as 'Weld', 'Axis', etc - + Prefixing any of the keywords (except 'All') with '-' or '!' will negate the filter Examples entity():getConnectedEntities("all") => entity():getConnectedEntities() => entity():getConnectedEntities("") => all three are the same diff --git a/lua/entities/gmod_wire_expression2/core/custom/prop.lua b/lua/entities/gmod_wire_expression2/core/custom/prop.lua index 24b8080307..82978add6a 100644 --- a/lua/entities/gmod_wire_expression2/core/custom/prop.lua +++ b/lua/entities/gmod_wire_expression2/core/custom/prop.lua @@ -30,7 +30,7 @@ function PropCore.ValidSpawn(ply, model, isVehicle) local ret -- DO NOT RETURN MID-FUNCTION OR 'LimitHit' WILL BREAK local limithit = playerMeta.LimitHit playerMeta.LimitHit = function() end - + if not PropCore.WithinPropcoreLimits() then ret = false elseif not (util.IsValidProp( model ) and WireLib.CanModel(ply, model)) then @@ -40,7 +40,7 @@ function PropCore.ValidSpawn(ply, model, isVehicle) else ret = gamemode.Call( "PlayerSpawnProp", ply, model ) ~= false end - + playerMeta.LimitHit = limithit return ret end diff --git a/lua/entities/gmod_wire_hologram.lua b/lua/entities/gmod_wire_hologram.lua index d3d0725485..5d805f762c 100644 --- a/lua/entities/gmod_wire_hologram.lua +++ b/lua/entities/gmod_wire_hologram.lua @@ -132,10 +132,10 @@ if CLIENT then clip.normal = norm clip.origin = origin - if localentid ~= 0 then - clip.localentid = localentid - else - clip.localentid = nil + if localentid ~= 0 then + clip.localentid = localentid + else + clip.localentid = nil end end diff --git a/lua/entities/gmod_wire_vectorthruster.lua b/lua/entities/gmod_wire_vectorthruster.lua index bbefba12ac..0edfee3cf3 100644 --- a/lua/entities/gmod_wire_vectorthruster.lua +++ b/lua/entities/gmod_wire_vectorthruster.lua @@ -46,7 +46,7 @@ function ENT:GetOffset( name ) end function ENT:SetNormal( v ) - self:SetNWVector( "vec", v ) + self:SetNWVector( "vec", v ) end function ENT:GetNormal() return self:GetNWVector( "vec" ) @@ -104,10 +104,10 @@ function ENT:Initialize() self.mul = 0 self.force = 0 self.calcforce = true - + self.ForceLinear = vector_origin self.ForceAngular = vector_origin - + local max = self:OBBMaxs() self.ThrustOffset = Vector( 0, 0, max.z ) diff --git a/lua/wire/client/rendertarget_fix.lua b/lua/wire/client/rendertarget_fix.lua index 12309d1d10..aa7272cc76 100644 --- a/lua/wire/client/rendertarget_fix.lua +++ b/lua/wire/client/rendertarget_fix.lua @@ -111,7 +111,7 @@ RTFix:Add("gmod_wire_textscreen","Text Screen", function( ent ) def( ent, "NeedR RTFix:Add("gmod_wire_egp","EGP",function( ent ) def( ent, "NeedsUpdate" ) end) -- EGP Emitter needs a check because it can optionally not use RTs -RTFix:Add("gmod_wire_egp_emitter","EGP Emitter",function( ent ) +RTFix:Add("gmod_wire_egp_emitter","EGP Emitter",function( ent ) if ent:GetUseRT() then def( ent, "NeedsUpdate" ) end diff --git a/lua/wire/client/text_editor/texteditor.lua b/lua/wire/client/text_editor/texteditor.lua index 0fb80f78f4..1c86e3dad0 100644 --- a/lua/wire/client/text_editor/texteditor.lua +++ b/lua/wire/client/text_editor/texteditor.lua @@ -469,10 +469,10 @@ do local matchSearch = { ["{"] = { "}", true }, ["}"] = { "{", false }, - + ["["] = { "]", true }, ["]"] = { "[", false }, - + ["("] = { ")", true }, [")"] = { "(", false }, } diff --git a/lua/wire/client/text_editor/wire_expression2_editor.lua b/lua/wire/client/text_editor/wire_expression2_editor.lua index cef5670a59..dc234ee896 100644 --- a/lua/wire/client/text_editor/wire_expression2_editor.lua +++ b/lua/wire/client/text_editor/wire_expression2_editor.lua @@ -1848,7 +1848,7 @@ function Editor:Close() self.chip = false self:SaveEditorSettings() - + hook.Run("WireEditorClose", self) end diff --git a/lua/wire/gates/highspeed.lua b/lua/wire/gates/highspeed.lua index 5f5389dec9..d869f251ac 100644 --- a/lua/wire/gates/highspeed.lua +++ b/lua/wire/gates/highspeed.lua @@ -25,7 +25,7 @@ GateActions["highspeed_read"] = { inputtypes = { "NORMAL", "WIRELINK", "NORMAL" }, output = function(gate, Clk, Memory, Address) if Clk <= 0 then return gate.Memory or 0 end - + Address = math.floor(Address or -1) if not Memory or not Memory.ReadCell or Address < 0 then gate.Memory = 0 diff --git a/lua/wire/server/wirelib.lua b/lua/wire/server/wirelib.lua index b6ae0d0b27..446c1835db 100644 --- a/lua/wire/server/wirelib.lua +++ b/lua/wire/server/wirelib.lua @@ -1194,7 +1194,7 @@ function WireLib.SetColor(ent, color) else rendermode = nil -- Don't modify the current stored modifier end - + ent:SetColor(color) duplicator.StoreEntityModifier(ent, "colour", { Color = color, RenderMode = rendermode }) end diff --git a/lua/wire/stools/egp.lua b/lua/wire/stools/egp.lua index 18032ca0ff..fe2af8df10 100644 --- a/lua/wire/stools/egp.lua +++ b/lua/wire/stools/egp.lua @@ -89,7 +89,7 @@ if (SERVER) then trace.Entity:SetTranslucent(self:GetClientNumber("translucent")~=0) return true end - + local ply = self:GetOwner() if (not ply:CheckLimit( "wire_egps" )) then return false end