{"action":"created","comment":{"url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/pulls/comments/74241763","id":74241763,"diff_hunk":"@@ -0,0 +1,39 @@\n+\n+\n+if minetest.get_modpath(\"moreblocks\") then\n+\tfunction darkage.register_stairs(nodeName)\n+        local ndef = assert(minetest.registered_nodes[nodeName], \"Error: \"..nodeName..\" is not registered\")\n+\n+        local mod = \"darkage\"\n+        local node = nodeName:split(\":\")[2]\n+\n+        stairsplus:register_all(mod, node, nodeName, ndef)\n+    end\n+elseif minetest.get_modpath(\"stairs\") then\n+\tfunction darkage.register_stairs(nodeName)\n+        local ndef = assert(minetest.registered_nodes[nodeName], \"Error: \"..nodeName..\" is not registered\")\n+\n+        local node = nodeName:split(\":\")[2]\n+\n+        -- The stairs api does not allow to use the darkage modname, so we have to call the nodes stairs:stair_darkage_\n+        -- and creating an alias\n+        local subname = \"darkage_\".. node; \n+        stairs.register_stair_and_slab(subname, nodeName,\n+                                       ndef.groups, ndef.tiles, \n+                                       ndef.description..\" Stair\", ndef.description..\" Slab\",\n+                                       ndef.sounds)\n+\n+        --stairs.register_stair_and_slab(subname, recipeitem,\n+        --                               groups, images, \n+        --                               desc_stair, desc_slab, sounds)\n+        minetest.register_alias(\"darkage:stair_\"..node, \"stairs:stair_darkage_\"..node)\n+        minetest.register_alias(\"darkage:slab_\"..node, \"stairs:slab_darkage_\"..node)\n+    end\n+else ","path":"mods/darkage/stairs_functions.lua","position":32,"original_position":32,"commit_id":"2df66ceb25fc0c9b5130577edda11157bd47dbee","original_commit_id":"2df66ceb25fc0c9b5130577edda11157bd47dbee","user":{"login":"Amaz1","id":4390945,"avatar_url":"https://avatars.githubusercontent.com/u/4390945?v=3","gravatar_id":"","url":"https://api.github.com/users/Amaz1","html_url":"https://github.com/Amaz1","followers_url":"https://api.github.com/users/Amaz1/followers","following_url":"https://api.github.com/users/Amaz1/following{/other_user}","gists_url":"https://api.github.com/users/Amaz1/gists{/gist_id}","starred_url":"https://api.github.com/users/Amaz1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amaz1/subscriptions","organizations_url":"https://api.github.com/users/Amaz1/orgs","repos_url":"https://api.github.com/users/Amaz1/repos","events_url":"https://api.github.com/users/Amaz1/events{/privacy}","received_events_url":"https://api.github.com/users/Amaz1/received_events","type":"User","site_admin":false},"body":"And can you remove all of this else statement, because the stairs mod will always be present.","created_at":"2016-08-10T13:20:22Z","updated_at":"2016-08-10T13:20:22Z","html_url":"https://github.com/minetest-LOTR/Lord-of-the-Test/pull/60#discussion_r74241763","pull_request_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/pulls/60","_links":{"self":{"href":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/pulls/comments/74241763"},"html":{"href":"https://github.com/minetest-LOTR/Lord-of-the-Test/pull/60#discussion_r74241763"},"pull_request":{"href":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/pulls/60"}}},"pull_request":{"url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/pulls/60","id":80791444,"html_url":"https://github.com/minetest-LOTR/Lord-of-the-Test/pull/60","diff_url":"https://github.com/minetest-LOTR/Lord-of-the-Test/pull/60.diff","patch_url":"https://github.com/minetest-LOTR/Lord-of-the-Test/pull/60.patch","issue_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/issues/60","number":60,"state":"open","locked":false,"title":"Add darkage mod","user":{"login":"lumidify","id":12764993,"avatar_url":"https://avatars.githubusercontent.com/u/12764993?v=3","gravatar_id":"","url":"https://api.github.com/users/lumidify","html_url":"https://github.com/lumidify","followers_url":"https://api.github.com/users/lumidify/followers","following_url":"https://api.github.com/users/lumidify/following{/other_user}","gists_url":"https://api.github.com/users/lumidify/gists{/gist_id}","starred_url":"https://api.github.com/users/lumidify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumidify/subscriptions","organizations_url":"https://api.github.com/users/lumidify/orgs","repos_url":"https://api.github.com/users/lumidify/repos","events_url":"https://api.github.com/users/lumidify/events{/privacy}","received_events_url":"https://api.github.com/users/lumidify/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-10T13:13:26Z","updated_at":"2016-08-10T13:20:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fadc53622c58e60452dbd28fd63d0e21e014b303","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/pulls/60/commits","review_comments_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/pulls/60/comments","review_comment_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/issues/60/comments","statuses_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/statuses/2df66ceb25fc0c9b5130577edda11157bd47dbee","head":{"label":"lumidify:stuff","ref":"stuff","sha":"2df66ceb25fc0c9b5130577edda11157bd47dbee","user":{"login":"lumidify","id":12764993,"avatar_url":"https://avatars.githubusercontent.com/u/12764993?v=3","gravatar_id":"","url":"https://api.github.com/users/lumidify","html_url":"https://github.com/lumidify","followers_url":"https://api.github.com/users/lumidify/followers","following_url":"https://api.github.com/users/lumidify/following{/other_user}","gists_url":"https://api.github.com/users/lumidify/gists{/gist_id}","starred_url":"https://api.github.com/users/lumidify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumidify/subscriptions","organizations_url":"https://api.github.com/users/lumidify/orgs","repos_url":"https://api.github.com/users/lumidify/repos","events_url":"https://api.github.com/users/lumidify/events{/privacy}","received_events_url":"https://api.github.com/users/lumidify/received_events","type":"User","site_admin":false},"repo":{"id":64945349,"name":"Lord-of-the-Test","full_name":"lumidify/Lord-of-the-Test","owner":{"login":"lumidify","id":12764993,"avatar_url":"https://avatars.githubusercontent.com/u/12764993?v=3","gravatar_id":"","url":"https://api.github.com/users/lumidify","html_url":"https://github.com/lumidify","followers_url":"https://api.github.com/users/lumidify/followers","following_url":"https://api.github.com/users/lumidify/following{/other_user}","gists_url":"https://api.github.com/users/lumidify/gists{/gist_id}","starred_url":"https://api.github.com/users/lumidify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumidify/subscriptions","organizations_url":"https://api.github.com/users/lumidify/orgs","repos_url":"https://api.github.com/users/lumidify/repos","events_url":"https://api.github.com/users/lumidify/events{/privacy}","received_events_url":"https://api.github.com/users/lumidify/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lumidify/Lord-of-the-Test","description":"LOTR Subgame for Minetest.","fork":true,"url":"https://api.github.com/repos/lumidify/Lord-of-the-Test","forks_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/forks","keys_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/teams","hooks_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/hooks","issue_events_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/issues/events{/number}","events_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/events","assignees_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/assignees{/user}","branches_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/branches{/branch}","tags_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/tags","blobs_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/git/refs{/sha}","trees_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/statuses/{sha}","languages_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/languages","stargazers_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/stargazers","contributors_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/contributors","subscribers_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/subscribers","subscription_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/subscription","commits_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/commits{/sha}","git_commits_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/git/commits{/sha}","comments_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/comments{/number}","issue_comment_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/issues/comments{/number}","contents_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/contents/{+path}","compare_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/merges","archive_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/downloads","issues_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/issues{/number}","pulls_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/pulls{/number}","milestones_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/milestones{/number}","notifications_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/labels{/name}","releases_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/releases{/id}","deployments_url":"https://api.github.com/repos/lumidify/Lord-of-the-Test/deployments","created_at":"2016-08-04T15:20:21Z","updated_at":"2016-08-04T15:20:23Z","pushed_at":"2016-08-10T13:12:42Z","git_url":"git://github.com/lumidify/Lord-of-the-Test.git","ssh_url":"git@github.com:lumidify/Lord-of-the-Test.git","clone_url":"https://github.com/lumidify/Lord-of-the-Test.git","svn_url":"https://github.com/lumidify/Lord-of-the-Test","homepage":"","size":22176,"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":"minetest-LOTR:master","ref":"master","sha":"3d78deece7a7837e0a46737fc0c640ca891cddae","user":{"login":"minetest-LOTR","id":10451819,"avatar_url":"https://avatars.githubusercontent.com/u/10451819?v=3","gravatar_id":"","url":"https://api.github.com/users/minetest-LOTR","html_url":"https://github.com/minetest-LOTR","followers_url":"https://api.github.com/users/minetest-LOTR/followers","following_url":"https://api.github.com/users/minetest-LOTR/following{/other_user}","gists_url":"https://api.github.com/users/minetest-LOTR/gists{/gist_id}","starred_url":"https://api.github.com/users/minetest-LOTR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minetest-LOTR/subscriptions","organizations_url":"https://api.github.com/users/minetest-LOTR/orgs","repos_url":"https://api.github.com/users/minetest-LOTR/repos","events_url":"https://api.github.com/users/minetest-LOTR/events{/privacy}","received_events_url":"https://api.github.com/users/minetest-LOTR/received_events","type":"Organization","site_admin":false},"repo":{"id":16736511,"name":"Lord-of-the-Test","full_name":"minetest-LOTR/Lord-of-the-Test","owner":{"login":"minetest-LOTR","id":10451819,"avatar_url":"https://avatars.githubusercontent.com/u/10451819?v=3","gravatar_id":"","url":"https://api.github.com/users/minetest-LOTR","html_url":"https://github.com/minetest-LOTR","followers_url":"https://api.github.com/users/minetest-LOTR/followers","following_url":"https://api.github.com/users/minetest-LOTR/following{/other_user}","gists_url":"https://api.github.com/users/minetest-LOTR/gists{/gist_id}","starred_url":"https://api.github.com/users/minetest-LOTR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minetest-LOTR/subscriptions","organizations_url":"https://api.github.com/users/minetest-LOTR/orgs","repos_url":"https://api.github.com/users/minetest-LOTR/repos","events_url":"https://api.github.com/users/minetest-LOTR/events{/privacy}","received_events_url":"https://api.github.com/users/minetest-LOTR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/minetest-LOTR/Lord-of-the-Test","description":"LOTR Subgame for Minetest.","fork":false,"url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test","forks_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/forks","keys_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/teams","hooks_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/hooks","issue_events_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/issues/events{/number}","events_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/events","assignees_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/assignees{/user}","branches_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/branches{/branch}","tags_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/tags","blobs_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/git/refs{/sha}","trees_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/statuses/{sha}","languages_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/languages","stargazers_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/stargazers","contributors_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/contributors","subscribers_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/subscribers","subscription_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/subscription","commits_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/commits{/sha}","git_commits_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/git/commits{/sha}","comments_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/comments{/number}","issue_comment_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/issues/comments{/number}","contents_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/contents/{+path}","compare_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/merges","archive_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/downloads","issues_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/issues{/number}","pulls_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/pulls{/number}","milestones_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/milestones{/number}","notifications_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/labels{/name}","releases_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/releases{/id}","deployments_url":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/deployments","created_at":"2014-02-11T16:10:51Z","updated_at":"2016-08-01T03:22:31Z","pushed_at":"2016-08-10T13:13:26Z","git_url":"git://github.com/minetest-LOTR/Lord-of-the-Test.git","ssh_url":"git@github.com:minetest-LOTR/Lord-of-the-Test.git","clone_url":"https://github.com/minetest-LOTR/Lord-of-the-Test.git","svn_url":"https://github.com/minetest-LOTR/Lord-of-the-Test","homepage":"","size":22426,"stargazers_count":17,"watchers_count":17,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/pulls/60"},"html":{"href":"https://github.com/minetest-LOTR/Lord-of-the-Test/pull/60"},"issue":{"href":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/issues/60"},"comments":{"href":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/minetest-LOTR/Lord-of-the-Test/statuses/2df66ceb25fc0c9b5130577edda11157bd47dbee"}}}}
{"actor":{"display_login":"Amaz1"}}