{"action":"created","comment":{"url":"https://api.github.com/repos/wiremod/wire/pulls/comments/42942512","id":42942512,"diff_hunk":"@@ -200,19 +200,8 @@ function ENT:GetActionOutputs()\n end\n \n function MakeWireGate(pl, Pos, Ang, model, action, noclip, frozen, nocollide)\n-\tlocal gate = GateActions[action]\n-\tif not gate then return end\n-\n-\tlocal group = gate.group\n-\tif not group then return end\n-\tgroup = string.lower(group)\n-\tif IsValid(pl) and not pl:CheckLimit( \"wire_gate_\" .. group .. \"s\" ) then return end\n-\n-\tlocal wire_gate = WireLib.MakeWireEnt( pl, {Class = \"gmod_wire_gate\", Pos=Pos, Angle=Ang, Model=model}, action, noclip )\n-\tif not IsValid(wire_gate) then return end\n-\n-\tif IsValid(pl) then pl:AddCount( \"wire_gate_\" .. group .. \"s\", wire_gate ) end\n+\tif not GateActions[action] then return end\n \n-\treturn wire_gate\n+\treturn WireLib.MakeWireEnt( pl, {Class = \"gmod_wire_gate\", Pos=Pos, Angle=Ang, Model=model}, action, noclip )","path":"lua/entities/gmod_wire_gate.lua","position":19,"original_position":19,"commit_id":"f8d12b357389302c4ecc0e7ca630e9f868dd154e","original_commit_id":"f8d12b357389302c4ecc0e7ca630e9f868dd154e","user":{"login":"TomyLobo","id":963797,"avatar_url":"https://avatars.githubusercontent.com/u/963797?v=3","gravatar_id":"","url":"https://api.github.com/users/TomyLobo","html_url":"https://github.com/TomyLobo","followers_url":"https://api.github.com/users/TomyLobo/followers","following_url":"https://api.github.com/users/TomyLobo/following{/other_user}","gists_url":"https://api.github.com/users/TomyLobo/gists{/gist_id}","starred_url":"https://api.github.com/users/TomyLobo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomyLobo/subscriptions","organizations_url":"https://api.github.com/users/TomyLobo/orgs","repos_url":"https://api.github.com/users/TomyLobo/repos","events_url":"https://api.github.com/users/TomyLobo/events{/privacy}","received_events_url":"https://api.github.com/users/TomyLobo/received_events","type":"User","site_admin":false},"body":"Inconsistent whitespace","created_at":"2015-10-25T08:25:51Z","updated_at":"2015-10-25T08:25:51Z","html_url":"https://github.com/wiremod/wire/pull/988#discussion_r42942512","pull_request_url":"https://api.github.com/repos/wiremod/wire/pulls/988","_links":{"self":{"href":"https://api.github.com/repos/wiremod/wire/pulls/comments/42942512"},"html":{"href":"https://github.com/wiremod/wire/pull/988#discussion_r42942512"},"pull_request":{"href":"https://api.github.com/repos/wiremod/wire/pulls/988"}}},"pull_request":{"url":"https://api.github.com/repos/wiremod/wire/pulls/988","id":48649083,"html_url":"https://github.com/wiremod/wire/pull/988","diff_url":"https://github.com/wiremod/wire/pull/988.diff","patch_url":"https://github.com/wiremod/wire/pull/988.patch","issue_url":"https://api.github.com/repos/wiremod/wire/issues/988","number":988,"state":"open","locked":false,"title":"Various usability improvements and cleanup","user":{"login":"immibis","id":507686,"avatar_url":"https://avatars.githubusercontent.com/u/507686?v=3","gravatar_id":"","url":"https://api.github.com/users/immibis","html_url":"https://github.com/immibis","followers_url":"https://api.github.com/users/immibis/followers","following_url":"https://api.github.com/users/immibis/following{/other_user}","gists_url":"https://api.github.com/users/immibis/gists{/gist_id}","starred_url":"https://api.github.com/users/immibis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/immibis/subscriptions","organizations_url":"https://api.github.com/users/immibis/orgs","repos_url":"https://api.github.com/users/immibis/repos","events_url":"https://api.github.com/users/immibis/events{/privacy}","received_events_url":"https://api.github.com/users/immibis/received_events","type":"User","site_admin":false},"body":"This has a bunch of relatively small changes. I don't want to spam PRs, so I'll remove any that you don't like.\r\n\r\n* When preparing the tree list (of gate types) in the gates tool, it's silly to only process one gate type per tick, since this is not an intensive operation that needs to be spread out over multiple ticks. So instead, the tree is completely loaded at once.\r\n* **Removed `sbox_maxwire_arithmetic_gates` and so on**. There's only the single `sbox_maxwire_gates` now.\r\n* Moved the gate type tree to the top of the gates' tool panel. (Otherwise you have to scroll down to reach it, on some common laptop resolutions. It's the most important control for this tool - if there's any control that should be reachable without scrolling, it's this one)\r\n* **Removed the legacy wire tool**. Renamed Wire Advanced to just \"Wire\".\r\n* **Removed the array gates**. Does anyone use them? Do they even have a use?\r\n* **Moved the Constant Value tool** from \"Input, Output\" to \"Chips, Gates\". Removed the GPU and SPU tools from \"Chips, Gates\". My rationale is that the \"Chips, Gates\" category should be for things you'd use for data processing; Constant Value seems to naturally belong here, and GPU under Visuals, and SPU under Sound. *(Should I rename the category to something like Processing?)*\r\n* **Added a button on the Wire spawnmenu tab** to jump directly to the Wire tool. (It should be the most commonly used Wiremod tool, except maybe E2, and it sucks to have to scroll to find it and also lose your previous place in the tree)","created_at":"2015-10-24T05:10:11Z","updated_at":"2015-10-25T08:25:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9270b84f964982a1d9a8dec8ec278a0096042d2e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wiremod/wire/pulls/988/commits","review_comments_url":"https://api.github.com/repos/wiremod/wire/pulls/988/comments","review_comment_url":"https://api.github.com/repos/wiremod/wire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wiremod/wire/issues/988/comments","statuses_url":"https://api.github.com/repos/wiremod/wire/statuses/f8d12b357389302c4ecc0e7ca630e9f868dd154e","head":{"label":"immibis:master2","ref":"master2","sha":"f8d12b357389302c4ecc0e7ca630e9f868dd154e","user":{"login":"immibis","id":507686,"avatar_url":"https://avatars.githubusercontent.com/u/507686?v=3","gravatar_id":"","url":"https://api.github.com/users/immibis","html_url":"https://github.com/immibis","followers_url":"https://api.github.com/users/immibis/followers","following_url":"https://api.github.com/users/immibis/following{/other_user}","gists_url":"https://api.github.com/users/immibis/gists{/gist_id}","starred_url":"https://api.github.com/users/immibis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/immibis/subscriptions","organizations_url":"https://api.github.com/users/immibis/orgs","repos_url":"https://api.github.com/users/immibis/repos","events_url":"https://api.github.com/users/immibis/events{/privacy}","received_events_url":"https://api.github.com/users/immibis/received_events","type":"User","site_admin":false},"repo":{"id":33388098,"name":"wiremod","full_name":"immibis/wiremod","owner":{"login":"immibis","id":507686,"avatar_url":"https://avatars.githubusercontent.com/u/507686?v=3","gravatar_id":"","url":"https://api.github.com/users/immibis","html_url":"https://github.com/immibis","followers_url":"https://api.github.com/users/immibis/followers","following_url":"https://api.github.com/users/immibis/following{/other_user}","gists_url":"https://api.github.com/users/immibis/gists{/gist_id}","starred_url":"https://api.github.com/users/immibis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/immibis/subscriptions","organizations_url":"https://api.github.com/users/immibis/orgs","repos_url":"https://api.github.com/users/immibis/repos","events_url":"https://api.github.com/users/immibis/events{/privacy}","received_events_url":"https://api.github.com/users/immibis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/immibis/wiremod","description":"Garry's Mod add-on that allows users to wire up components in order to make more elaborate automatic and user-controlled contraptions.","fork":true,"url":"https://api.github.com/repos/immibis/wiremod","forks_url":"https://api.github.com/repos/immibis/wiremod/forks","keys_url":"https://api.github.com/repos/immibis/wiremod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/immibis/wiremod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/immibis/wiremod/teams","hooks_url":"https://api.github.com/repos/immibis/wiremod/hooks","issue_events_url":"https://api.github.com/repos/immibis/wiremod/issues/events{/number}","events_url":"https://api.github.com/repos/immibis/wiremod/events","assignees_url":"https://api.github.com/repos/immibis/wiremod/assignees{/user}","branches_url":"https://api.github.com/repos/immibis/wiremod/branches{/branch}","tags_url":"https://api.github.com/repos/immibis/wiremod/tags","blobs_url":"https://api.github.com/repos/immibis/wiremod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/immibis/wiremod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/immibis/wiremod/git/refs{/sha}","trees_url":"https://api.github.com/repos/immibis/wiremod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/immibis/wiremod/statuses/{sha}","languages_url":"https://api.github.com/repos/immibis/wiremod/languages","stargazers_url":"https://api.github.com/repos/immibis/wiremod/stargazers","contributors_url":"https://api.github.com/repos/immibis/wiremod/contributors","subscribers_url":"https://api.github.com/repos/immibis/wiremod/subscribers","subscription_url":"https://api.github.com/repos/immibis/wiremod/subscription","commits_url":"https://api.github.com/repos/immibis/wiremod/commits{/sha}","git_commits_url":"https://api.github.com/repos/immibis/wiremod/git/commits{/sha}","comments_url":"https://api.github.com/repos/immibis/wiremod/comments{/number}","issue_comment_url":"https://api.github.com/repos/immibis/wiremod/issues/comments{/number}","contents_url":"https://api.github.com/repos/immibis/wiremod/contents/{+path}","compare_url":"https://api.github.com/repos/immibis/wiremod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/immibis/wiremod/merges","archive_url":"https://api.github.com/repos/immibis/wiremod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/immibis/wiremod/downloads","issues_url":"https://api.github.com/repos/immibis/wiremod/issues{/number}","pulls_url":"https://api.github.com/repos/immibis/wiremod/pulls{/number}","milestones_url":"https://api.github.com/repos/immibis/wiremod/milestones{/number}","notifications_url":"https://api.github.com/repos/immibis/wiremod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/immibis/wiremod/labels{/name}","releases_url":"https://api.github.com/repos/immibis/wiremod/releases{/id}","created_at":"2015-04-03T23:50:27Z","updated_at":"2015-08-16T07:41:43Z","pushed_at":"2015-10-25T02:12:07Z","git_url":"git://github.com/immibis/wiremod.git","ssh_url":"git@github.com:immibis/wiremod.git","clone_url":"https://github.com/immibis/wiremod.git","svn_url":"https://github.com/immibis/wiremod","homepage":"http://www.wiremod.com","size":17543,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wiremod:master","ref":"master","sha":"8f0391e4067e6ef7629843e0d9aa83457fa6632d","user":{"login":"wiremod","id":113164,"avatar_url":"https://avatars.githubusercontent.com/u/113164?v=3","gravatar_id":"","url":"https://api.github.com/users/wiremod","html_url":"https://github.com/wiremod","followers_url":"https://api.github.com/users/wiremod/followers","following_url":"https://api.github.com/users/wiremod/following{/other_user}","gists_url":"https://api.github.com/users/wiremod/gists{/gist_id}","starred_url":"https://api.github.com/users/wiremod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiremod/subscriptions","organizations_url":"https://api.github.com/users/wiremod/orgs","repos_url":"https://api.github.com/users/wiremod/repos","events_url":"https://api.github.com/users/wiremod/events{/privacy}","received_events_url":"https://api.github.com/users/wiremod/received_events","type":"Organization","site_admin":false},"repo":{"id":4248640,"name":"wire","full_name":"wiremod/wire","owner":{"login":"wiremod","id":113164,"avatar_url":"https://avatars.githubusercontent.com/u/113164?v=3","gravatar_id":"","url":"https://api.github.com/users/wiremod","html_url":"https://github.com/wiremod","followers_url":"https://api.github.com/users/wiremod/followers","following_url":"https://api.github.com/users/wiremod/following{/other_user}","gists_url":"https://api.github.com/users/wiremod/gists{/gist_id}","starred_url":"https://api.github.com/users/wiremod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiremod/subscriptions","organizations_url":"https://api.github.com/users/wiremod/orgs","repos_url":"https://api.github.com/users/wiremod/repos","events_url":"https://api.github.com/users/wiremod/events{/privacy}","received_events_url":"https://api.github.com/users/wiremod/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wiremod/wire","description":"Garry's Mod add-on that allows users to wire up components in order to make more elaborate automatic and user-controlled contraptions.","fork":false,"url":"https://api.github.com/repos/wiremod/wire","forks_url":"https://api.github.com/repos/wiremod/wire/forks","keys_url":"https://api.github.com/repos/wiremod/wire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wiremod/wire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wiremod/wire/teams","hooks_url":"https://api.github.com/repos/wiremod/wire/hooks","issue_events_url":"https://api.github.com/repos/wiremod/wire/issues/events{/number}","events_url":"https://api.github.com/repos/wiremod/wire/events","assignees_url":"https://api.github.com/repos/wiremod/wire/assignees{/user}","branches_url":"https://api.github.com/repos/wiremod/wire/branches{/branch}","tags_url":"https://api.github.com/repos/wiremod/wire/tags","blobs_url":"https://api.github.com/repos/wiremod/wire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wiremod/wire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wiremod/wire/git/refs{/sha}","trees_url":"https://api.github.com/repos/wiremod/wire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wiremod/wire/statuses/{sha}","languages_url":"https://api.github.com/repos/wiremod/wire/languages","stargazers_url":"https://api.github.com/repos/wiremod/wire/stargazers","contributors_url":"https://api.github.com/repos/wiremod/wire/contributors","subscribers_url":"https://api.github.com/repos/wiremod/wire/subscribers","subscription_url":"https://api.github.com/repos/wiremod/wire/subscription","commits_url":"https://api.github.com/repos/wiremod/wire/commits{/sha}","git_commits_url":"https://api.github.com/repos/wiremod/wire/git/commits{/sha}","comments_url":"https://api.github.com/repos/wiremod/wire/comments{/number}","issue_comment_url":"https://api.github.com/repos/wiremod/wire/issues/comments{/number}","contents_url":"https://api.github.com/repos/wiremod/wire/contents/{+path}","compare_url":"https://api.github.com/repos/wiremod/wire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wiremod/wire/merges","archive_url":"https://api.github.com/repos/wiremod/wire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wiremod/wire/downloads","issues_url":"https://api.github.com/repos/wiremod/wire/issues{/number}","pulls_url":"https://api.github.com/repos/wiremod/wire/pulls{/number}","milestones_url":"https://api.github.com/repos/wiremod/wire/milestones{/number}","notifications_url":"https://api.github.com/repos/wiremod/wire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wiremod/wire/labels{/name}","releases_url":"https://api.github.com/repos/wiremod/wire/releases{/id}","created_at":"2012-05-07T10:55:50Z","updated_at":"2015-10-14T05:25:00Z","pushed_at":"2015-10-25T02:12:07Z","git_url":"git://github.com/wiremod/wire.git","ssh_url":"git@github.com:wiremod/wire.git","clone_url":"https://github.com/wiremod/wire.git","svn_url":"https://github.com/wiremod/wire","homepage":"http://www.wiremod.com","size":28332,"stargazers_count":217,"watchers_count":217,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":228,"mirror_url":null,"open_issues_count":71,"forks":228,"open_issues":71,"watchers":217,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wiremod/wire/pulls/988"},"html":{"href":"https://github.com/wiremod/wire/pull/988"},"issue":{"href":"https://api.github.com/repos/wiremod/wire/issues/988"},"comments":{"href":"https://api.github.com/repos/wiremod/wire/issues/988/comments"},"review_comments":{"href":"https://api.github.com/repos/wiremod/wire/pulls/988/comments"},"review_comment":{"href":"https://api.github.com/repos/wiremod/wire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wiremod/wire/pulls/988/commits"},"statuses":{"href":"https://api.github.com/repos/wiremod/wire/statuses/f8d12b357389302c4ecc0e7ca630e9f868dd154e"}}}}