{"action":"created","comment":{"url":"https://api.github.com/repos/SirCmpwn/TrueCraft/pulls/comments/29979937","id":29979937,"diff_hunk":"@@ -1,14 +1,50 @@\n using System;\n+using System.Linq;\n+using TrueCraft.API;\n using TrueCraft.API.Logic;\n+using TrueCraft.API.Networking;\n+using TrueCraft.API.World;\n+using TrueCraft.Core.Logic.Blocks;\n \n namespace TrueCraft.Core.Logic.Items\n {\n     public class RedstoneItem : ItemProvider\n     {\n+        /// <summary>\n+        /// Redstone cannot be placed on any of the following BlockIDs\n+        /// </summary>\n+        protected static byte[] cannotPlace = { RedstoneDustBlock.BlockID, GlassBlock.BlockID, AirBlock.BlockID };\n+\n         public static readonly short ItemID = 0x14B;\n \n         public override short ID { get { return 0x14B; } }\n \n         public override string DisplayName { get { return \"Redstone\"; } }\n+\n+        public override void ItemUsedOnBlock(Coordinates3D coordinates, ItemStack item, BlockFace face, IWorld world, IRemoteClient user)\n+        {\n+            // TODO: Running backwards and spamming redstone dust sometimes causes redstone to be placed on redstone\n+\n+            if (face != BlockFace.PositiveY)\n+            {\n+                // Redstone dust cannot be placed anywhere but the top of a block\n+                return;\n+            }","path":"TrueCraft.Core/Logic/Items/RedstoneItem.cs","position":32,"original_position":32,"commit_id":"763a789adc2f257d1994b6200ea898c2b8c1257a","original_commit_id":"763a789adc2f257d1994b6200ea898c2b8c1257a","user":{"login":"ToastyMallows","id":4356159,"avatar_url":"https://avatars.githubusercontent.com/u/4356159?v=3","gravatar_id":"","url":"https://api.github.com/users/ToastyMallows","html_url":"https://github.com/ToastyMallows","followers_url":"https://api.github.com/users/ToastyMallows/followers","following_url":"https://api.github.com/users/ToastyMallows/following{/other_user}","gists_url":"https://api.github.com/users/ToastyMallows/gists{/gist_id}","starred_url":"https://api.github.com/users/ToastyMallows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToastyMallows/subscriptions","organizations_url":"https://api.github.com/users/ToastyMallows/orgs","repos_url":"https://api.github.com/users/ToastyMallows/repos","events_url":"https://api.github.com/users/ToastyMallows/events{/privacy}","received_events_url":"https://api.github.com/users/ToastyMallows/received_events","type":"User","site_admin":false},"body":"Is this what should happen?  When you click on the side of the pink block should redstone dust be placed on the white block?","created_at":"2015-05-08T21:52:30Z","updated_at":"2015-05-08T21:52:30Z","html_url":"https://github.com/SirCmpwn/TrueCraft/pull/56#discussion_r29979937","pull_request_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/SirCmpwn/TrueCraft/pulls/comments/29979937"},"html":{"href":"https://github.com/SirCmpwn/TrueCraft/pull/56#discussion_r29979937"},"pull_request":{"href":"https://api.github.com/repos/SirCmpwn/TrueCraft/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/SirCmpwn/TrueCraft/pulls/56","id":34696246,"html_url":"https://github.com/SirCmpwn/TrueCraft/pull/56","diff_url":"https://github.com/SirCmpwn/TrueCraft/pull/56.diff","patch_url":"https://github.com/SirCmpwn/TrueCraft/pull/56.patch","issue_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/issues/56","number":56,"state":"open","locked":false,"title":"Added support for placing redstone dust","user":{"login":"ToastyMallows","id":4356159,"avatar_url":"https://avatars.githubusercontent.com/u/4356159?v=3","gravatar_id":"","url":"https://api.github.com/users/ToastyMallows","html_url":"https://github.com/ToastyMallows","followers_url":"https://api.github.com/users/ToastyMallows/followers","following_url":"https://api.github.com/users/ToastyMallows/following{/other_user}","gists_url":"https://api.github.com/users/ToastyMallows/gists{/gist_id}","starred_url":"https://api.github.com/users/ToastyMallows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToastyMallows/subscriptions","organizations_url":"https://api.github.com/users/ToastyMallows/orgs","repos_url":"https://api.github.com/users/ToastyMallows/repos","events_url":"https://api.github.com/users/ToastyMallows/events{/privacy}","received_events_url":"https://api.github.com/users/ToastyMallows/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-05T04:50:40Z","updated_at":"2015-05-08T21:52:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89442a416f1dbcb66e84ff993d23cb60b22e68e6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/pulls/56/commits","review_comments_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/pulls/56/comments","review_comment_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/issues/56/comments","statuses_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/statuses/763a789adc2f257d1994b6200ea898c2b8c1257a","head":{"label":"ToastyMallows:master","ref":"master","sha":"763a789adc2f257d1994b6200ea898c2b8c1257a","user":{"login":"ToastyMallows","id":4356159,"avatar_url":"https://avatars.githubusercontent.com/u/4356159?v=3","gravatar_id":"","url":"https://api.github.com/users/ToastyMallows","html_url":"https://github.com/ToastyMallows","followers_url":"https://api.github.com/users/ToastyMallows/followers","following_url":"https://api.github.com/users/ToastyMallows/following{/other_user}","gists_url":"https://api.github.com/users/ToastyMallows/gists{/gist_id}","starred_url":"https://api.github.com/users/ToastyMallows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToastyMallows/subscriptions","organizations_url":"https://api.github.com/users/ToastyMallows/orgs","repos_url":"https://api.github.com/users/ToastyMallows/repos","events_url":"https://api.github.com/users/ToastyMallows/events{/privacy}","received_events_url":"https://api.github.com/users/ToastyMallows/received_events","type":"User","site_admin":false},"repo":{"id":35002016,"name":"TrueCraft","full_name":"ToastyMallows/TrueCraft","owner":{"login":"ToastyMallows","id":4356159,"avatar_url":"https://avatars.githubusercontent.com/u/4356159?v=3","gravatar_id":"","url":"https://api.github.com/users/ToastyMallows","html_url":"https://github.com/ToastyMallows","followers_url":"https://api.github.com/users/ToastyMallows/followers","following_url":"https://api.github.com/users/ToastyMallows/following{/other_user}","gists_url":"https://api.github.com/users/ToastyMallows/gists{/gist_id}","starred_url":"https://api.github.com/users/ToastyMallows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToastyMallows/subscriptions","organizations_url":"https://api.github.com/users/ToastyMallows/orgs","repos_url":"https://api.github.com/users/ToastyMallows/repos","events_url":"https://api.github.com/users/ToastyMallows/events{/privacy}","received_events_url":"https://api.github.com/users/ToastyMallows/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ToastyMallows/TrueCraft","description":"An open-source implementation of Minecraft Beta 1.7.3","fork":true,"url":"https://api.github.com/repos/ToastyMallows/TrueCraft","forks_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/forks","keys_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/teams","hooks_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/hooks","issue_events_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/issues/events{/number}","events_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/events","assignees_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/assignees{/user}","branches_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/branches{/branch}","tags_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/tags","blobs_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/git/refs{/sha}","trees_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/statuses/{sha}","languages_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/languages","stargazers_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/stargazers","contributors_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/contributors","subscribers_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/subscribers","subscription_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/subscription","commits_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/commits{/sha}","git_commits_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/git/commits{/sha}","comments_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/comments{/number}","issue_comment_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/issues/comments{/number}","contents_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/contents/{+path}","compare_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/merges","archive_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/downloads","issues_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/issues{/number}","pulls_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/pulls{/number}","milestones_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/milestones{/number}","notifications_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/labels{/name}","releases_url":"https://api.github.com/repos/ToastyMallows/TrueCraft/releases{/id}","created_at":"2015-05-03T21:50:07Z","updated_at":"2015-05-05T04:49:51Z","pushed_at":"2015-05-05T04:49:51Z","git_url":"git://github.com/ToastyMallows/TrueCraft.git","ssh_url":"git@github.com:ToastyMallows/TrueCraft.git","clone_url":"https://github.com/ToastyMallows/TrueCraft.git","svn_url":"https://github.com/ToastyMallows/TrueCraft","homepage":"http://truecraft.io/","size":740,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SirCmpwn:master","ref":"master","sha":"062fee8471086e4ea103228b792db8624a435dd6","user":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"repo":{"id":28524244,"name":"TrueCraft","full_name":"SirCmpwn/TrueCraft","owner":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SirCmpwn/TrueCraft","description":"An open-source implementation of Minecraft Beta 1.7.3","fork":false,"url":"https://api.github.com/repos/SirCmpwn/TrueCraft","forks_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/forks","keys_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/teams","hooks_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/hooks","issue_events_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/issues/events{/number}","events_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/events","assignees_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/assignees{/user}","branches_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/branches{/branch}","tags_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/tags","blobs_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/git/refs{/sha}","trees_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/statuses/{sha}","languages_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/languages","stargazers_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/stargazers","contributors_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/contributors","subscribers_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/subscribers","subscription_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/subscription","commits_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/commits{/sha}","git_commits_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/git/commits{/sha}","comments_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/comments{/number}","issue_comment_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/issues/comments{/number}","contents_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/contents/{+path}","compare_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/merges","archive_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/downloads","issues_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/issues{/number}","pulls_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/pulls{/number}","milestones_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/milestones{/number}","notifications_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/labels{/name}","releases_url":"https://api.github.com/repos/SirCmpwn/TrueCraft/releases{/id}","created_at":"2014-12-26T23:50:04Z","updated_at":"2015-05-08T20:51:38Z","pushed_at":"2015-05-08T20:51:35Z","git_url":"git://github.com/SirCmpwn/TrueCraft.git","ssh_url":"git@github.com:SirCmpwn/TrueCraft.git","clone_url":"https://github.com/SirCmpwn/TrueCraft.git","svn_url":"https://github.com/SirCmpwn/TrueCraft","homepage":"http://truecraft.io/","size":2021,"stargazers_count":650,"watchers_count":650,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":51,"mirror_url":null,"open_issues_count":22,"forks":51,"open_issues":22,"watchers":650,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SirCmpwn/TrueCraft/pulls/56"},"html":{"href":"https://github.com/SirCmpwn/TrueCraft/pull/56"},"issue":{"href":"https://api.github.com/repos/SirCmpwn/TrueCraft/issues/56"},"comments":{"href":"https://api.github.com/repos/SirCmpwn/TrueCraft/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/SirCmpwn/TrueCraft/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/SirCmpwn/TrueCraft/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SirCmpwn/TrueCraft/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/SirCmpwn/TrueCraft/statuses/763a789adc2f257d1994b6200ea898c2b8c1257a"}}}}