{"action":"created","issue":{"url":"https://api.github.com/repos/SquidDev-CC/CC-Tweaks/issues/27","labels_url":"https://api.github.com/repos/SquidDev-CC/CC-Tweaks/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/SquidDev-CC/CC-Tweaks/issues/27/comments","events_url":"https://api.github.com/repos/SquidDev-CC/CC-Tweaks/issues/27/events","html_url":"https://github.com/SquidDev-CC/CC-Tweaks/pull/27","id":73759526,"number":27,"title":"Peripheral Network Access","user":{"login":"ElvishJerricco","id":1365692,"avatar_url":"https://avatars.githubusercontent.com/u/1365692?v=3","gravatar_id":"","url":"https://api.github.com/users/ElvishJerricco","html_url":"https://github.com/ElvishJerricco","followers_url":"https://api.github.com/users/ElvishJerricco/followers","following_url":"https://api.github.com/users/ElvishJerricco/following{/other_user}","gists_url":"https://api.github.com/users/ElvishJerricco/gists{/gist_id}","starred_url":"https://api.github.com/users/ElvishJerricco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElvishJerricco/subscriptions","organizations_url":"https://api.github.com/users/ElvishJerricco/orgs","repos_url":"https://api.github.com/users/ElvishJerricco/repos","events_url":"https://api.github.com/users/ElvishJerricco/events{/privacy}","received_events_url":"https://api.github.com/users/ElvishJerricco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/SquidDev-CC/CC-Tweaks/milestones/2","html_url":"https://github.com/SquidDev-CC/CC-Tweaks/milestones/0.2%20-%20Networks!","labels_url":"https://api.github.com/repos/SquidDev-CC/CC-Tweaks/milestones/2/labels","id":1060180,"number":2,"title":"0.2 - Networks!","description":"Add support for custom network componenets","creator":{"login":"SquidDev","id":4346137,"avatar_url":"https://avatars.githubusercontent.com/u/4346137?v=3","gravatar_id":"","url":"https://api.github.com/users/SquidDev","html_url":"https://github.com/SquidDev","followers_url":"https://api.github.com/users/SquidDev/followers","following_url":"https://api.github.com/users/SquidDev/following{/other_user}","gists_url":"https://api.github.com/users/SquidDev/gists{/gist_id}","starred_url":"https://api.github.com/users/SquidDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SquidDev/subscriptions","organizations_url":"https://api.github.com/users/SquidDev/orgs","repos_url":"https://api.github.com/users/SquidDev/repos","events_url":"https://api.github.com/users/SquidDev/events{/privacy}","received_events_url":"https://api.github.com/users/SquidDev/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":6,"state":"open","created_at":"2015-04-09T12:03:01Z","updated_at":"2015-05-07T10:54:30Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2015-05-06T22:40:14Z","updated_at":"2015-05-07T17:36:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SquidDev-CC/CC-Tweaks/pulls/27","html_url":"https://github.com/SquidDev-CC/CC-Tweaks/pull/27","diff_url":"https://github.com/SquidDev-CC/CC-Tweaks/pull/27.diff","patch_url":"https://github.com/SquidDev-CC/CC-Tweaks/pull/27.patch"},"body":"Closes #17\r\n\r\n- [x] Network invalidation hooks\r\n- [x] Packet handling\r\n- [ ] INetworkAccess for peripherals attached directly to computers."},"comment":{"url":"https://api.github.com/repos/SquidDev-CC/CC-Tweaks/issues/comments/99952717","html_url":"https://github.com/SquidDev-CC/CC-Tweaks/pull/27#issuecomment-99952717","issue_url":"https://api.github.com/repos/SquidDev-CC/CC-Tweaks/issues/27","id":99952717,"user":{"login":"SquidDev","id":4346137,"avatar_url":"https://avatars.githubusercontent.com/u/4346137?v=3","gravatar_id":"","url":"https://api.github.com/users/SquidDev","html_url":"https://github.com/SquidDev","followers_url":"https://api.github.com/users/SquidDev/followers","following_url":"https://api.github.com/users/SquidDev/following{/other_user}","gists_url":"https://api.github.com/users/SquidDev/gists{/gist_id}","starred_url":"https://api.github.com/users/SquidDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SquidDev/subscriptions","organizations_url":"https://api.github.com/users/SquidDev/orgs","repos_url":"https://api.github.com/users/SquidDev/repos","events_url":"https://api.github.com/users/SquidDev/events{/privacy}","received_events_url":"https://api.github.com/users/SquidDev/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T17:36:10Z","updated_at":"2015-05-07T17:36:10Z","body":"It should be fine seeing as most of the code should be copied from the original file. If you don't need methods from the outer class everything should work. I'm surprised that the CableBlock renderer works seeing as static constructors aren't supported and you have [a static field](https://github.com/SquidDev-CC/CC-Tweaks/blob/master/src/main/java/org/squiddev/cctweaks/core/patch/CableBlockRenderingHandler_Patch.java#L15). I'll probably do an ASM dump on that class to see what happened.\r\n\r\nI'm not 100% happy with my patch to multi-peripheral modems - I ensure the IDs were identical before and after - but there could be an edge case where the IDs and so the invalidated event isn't fired."}}