Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #2940 #2941

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lua/entities/gmod_wire_expression2/core/custom/wiring.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
if CheckInput.SrcId == outputname and CheckInput.Src == ent2 then return 0 end -- Already wired
end

if(!table.HasValue(ValidWireMat,mat)) then

Check warning on line 42 in lua/entities/gmod_wire_expression2/core/custom/wiring.lua

View workflow job for this annotation

GitHub Actions / lint

"Syntax inconsistency"

Inconsistent use of '!' and 'not'

Check warning on line 42 in lua/entities/gmod_wire_expression2/core/custom/wiring.lua

View workflow job for this annotation

GitHub Actions / lint

"Syntax inconsistency"

Inconsistent use of '!' and 'not'
if(table.HasValue(ValidWireMat,"cable/"..mat)) then
mat = "cable/"..mat
elseif(table.HasValue(ValidWireMat,"arrowire/"..mat)) then
Expand Down Expand Up @@ -108,7 +108,10 @@
e2function wirelink entity:wirelink()
if not IsValid(this) then return self:throw("Invalid entity!", nil) end
if not isOwner(self, this) then return self:throw("You do not own this entity!", nil) end

Check warning on line 111 in lua/entities/gmod_wire_expression2/core/custom/wiring.lua

View workflow job for this annotation

GitHub Actions / lint

"Trailing whitespace"

Trailing whitespace

Check warning on line 111 in lua/entities/gmod_wire_expression2/core/custom/wiring.lua

View workflow job for this annotation

GitHub Actions / lint

"Trailing whitespace"

Trailing whitespace
if not this.extended then
WireLib.CreateWirelinkOutput( self.player, this, {true} )
end
return this
end

Expand Down
Loading