{"action":"created","comment":{"url":"https://api.github.com/repos/minetest-mods/technic/pulls/comments/211114343","pull_request_review_id":147469979,"id":211114343,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTExNDM0Mw==","diff_hunk":"@@ -0,0 +1,40 @@\n+local S = technic.getter\n+\n+minetest.register_abm({\n+\tnodenames = {\"group:technic_lv\",\"group:technic_mv\",\"group:technic_hv\"},\n+\tlabel = \"Run Machines\",\n+\tinterval   = 1,\n+\tchance     = 1,\n+\taction = function(pos,node)\n+\t\tlocal meta = minetest.get_meta(pos)\n+\t\tlocal pos1 = {x=pos.x,y=pos.y-1,z=pos.z}\n+\t\tlocal tier = technic.get_cable_tier(minetest.get_node(pos1).name)\n+\t\tlocal meta = minetest.get_meta(pos)\n+\t\tif not tier then\n+\t\t\tmeta:set_int(\"active\",0)\n+\t\t\treturn\n+\t\tend\n+\t\tmeta:set_int(\"active\",1)\n+\t\tmeta:set_int(\"LV_EU_input\",meta:get_int(\"LV_EU_demand\"))\n+\t\tmeta:set_int(\"MV_EU_input\",meta:get_int(\"MV_EU_demand\"))\n+\t\tmeta:set_int(\"HV_EU_input\",meta:get_int(\"HV_EU_demand\"))\n+\t\tlocal nodedef = minetest.registered_nodes[node.name]\n+\t\tif nodedef and nodedef.technic_run then\n+\t\t\tnodedef.technic_run(pos,node)\n+\t\tend\n+\tend,\n+})\n+\n+minetest.register_lbm({\n+\tnodenames = {\"technic:switching_station\",\"technic:power_monitor\"},\n+\tname = \"technic:update_infotext\",","path":"technic/machines/creative.lua","position":null,"original_position":30,"commit_id":"f58aa000292c1e78e8c1b0c4951df56b6384d79b","original_commit_id":"eff73ec1f4a442f6dc0a665aa33926e7da0cc57d","user":{"login":"numberZero","id":7352626,"node_id":"MDQ6VXNlcjczNTI2MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/7352626?v=4","gravatar_id":"","url":"https://api.github.com/users/numberZero","html_url":"https://github.com/numberZero","followers_url":"https://api.github.com/users/numberZero/followers","following_url":"https://api.github.com/users/numberZero/following{/other_user}","gists_url":"https://api.github.com/users/numberZero/gists{/gist_id}","starred_url":"https://api.github.com/users/numberZero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numberZero/subscriptions","organizations_url":"https://api.github.com/users/numberZero/orgs","repos_url":"https://api.github.com/users/numberZero/repos","events_url":"https://api.github.com/users/numberZero/events{/privacy}","received_events_url":"https://api.github.com/users/numberZero/received_events","type":"User","site_admin":false},"body":"From the documentation:\r\n```lua\r\n        run_at_every_load = false,\r\n        -- Whether to run the LBM's action every time a block gets loaded,\r\n        -- and not just for blocks that were saved last time before LBMs were\r\n        -- introduced to the world.\r\n```\r\nSo you seem to rely on undocumented behavior. minetest/minetest#7660","created_at":"2018-08-19T20:35:13Z","updated_at":"2018-08-19T20:35:13Z","html_url":"https://github.com/minetest-mods/technic/pull/437#discussion_r211114343","pull_request_url":"https://api.github.com/repos/minetest-mods/technic/pulls/437","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/minetest-mods/technic/pulls/comments/211114343"},"html":{"href":"https://github.com/minetest-mods/technic/pull/437#discussion_r211114343"},"pull_request":{"href":"https://api.github.com/repos/minetest-mods/technic/pulls/437"}},"in_reply_to_id":211083744},"pull_request":{"url":"https://api.github.com/repos/minetest-mods/technic/pulls/437","id":209325990,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5MzI1OTkw","html_url":"https://github.com/minetest-mods/technic/pull/437","diff_url":"https://github.com/minetest-mods/technic/pull/437.diff","patch_url":"https://github.com/minetest-mods/technic/pull/437.patch","issue_url":"https://api.github.com/repos/minetest-mods/technic/issues/437","number":437,"state":"open","locked":false,"title":"Add \"creative mode\" option","user":{"login":"cheapie","id":415827,"node_id":"MDQ6VXNlcjQxNTgyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/415827?v=4","gravatar_id":"","url":"https://api.github.com/users/cheapie","html_url":"https://github.com/cheapie","followers_url":"https://api.github.com/users/cheapie/followers","following_url":"https://api.github.com/users/cheapie/following{/other_user}","gists_url":"https://api.github.com/users/cheapie/gists{/gist_id}","starred_url":"https://api.github.com/users/cheapie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheapie/subscriptions","organizations_url":"https://api.github.com/users/cheapie/orgs","repos_url":"https://api.github.com/users/cheapie/repos","events_url":"https://api.github.com/users/cheapie/events{/privacy}","received_events_url":"https://api.github.com/users/cheapie/received_events","type":"User","site_admin":false},"body":"This does not change the default behavior, but if \"enable_creative_mode\" is set to true in technic.conf, this completely disables power distribution and causes the following to happen, regardless of whether there is a switching station connected:\r\n* Switching Stations and Power Monitors become inert\r\n* Generators placed on top of a suitable cable will run (consume fuel if applicable, update infotext, and so on)\r\n* Batteries placed on top of a suitable cable will charge at maximum speed and remain fully charged\r\n* Machines that consume energy and are placed on top of a suitable cable will run normally, regardless of whether any power is present\r\n* Power distribution logic will not run and networks will not be calculated","created_at":"2018-08-18T19:03:16Z","updated_at":"2018-08-19T20:35:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ef5dca49eef9751cb1bf7bd539a01e758116f9e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/minetest-mods/technic/pulls/437/commits","review_comments_url":"https://api.github.com/repos/minetest-mods/technic/pulls/437/comments","review_comment_url":"https://api.github.com/repos/minetest-mods/technic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/minetest-mods/technic/issues/437/comments","statuses_url":"https://api.github.com/repos/minetest-mods/technic/statuses/f58aa000292c1e78e8c1b0c4951df56b6384d79b","head":{"label":"cheapie:master","ref":"master","sha":"f58aa000292c1e78e8c1b0c4951df56b6384d79b","user":{"login":"cheapie","id":415827,"node_id":"MDQ6VXNlcjQxNTgyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/415827?v=4","gravatar_id":"","url":"https://api.github.com/users/cheapie","html_url":"https://github.com/cheapie","followers_url":"https://api.github.com/users/cheapie/followers","following_url":"https://api.github.com/users/cheapie/following{/other_user}","gists_url":"https://api.github.com/users/cheapie/gists{/gist_id}","starred_url":"https://api.github.com/users/cheapie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheapie/subscriptions","organizations_url":"https://api.github.com/users/cheapie/orgs","repos_url":"https://api.github.com/users/cheapie/repos","events_url":"https://api.github.com/users/cheapie/events{/privacy}","received_events_url":"https://api.github.com/users/cheapie/received_events","type":"User","site_admin":false},"repo":{"id":145241612,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUyNDE2MTI=","name":"technic","full_name":"cheapie/technic","owner":{"login":"cheapie","id":415827,"node_id":"MDQ6VXNlcjQxNTgyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/415827?v=4","gravatar_id":"","url":"https://api.github.com/users/cheapie","html_url":"https://github.com/cheapie","followers_url":"https://api.github.com/users/cheapie/followers","following_url":"https://api.github.com/users/cheapie/following{/other_user}","gists_url":"https://api.github.com/users/cheapie/gists{/gist_id}","starred_url":"https://api.github.com/users/cheapie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheapie/subscriptions","organizations_url":"https://api.github.com/users/cheapie/orgs","repos_url":"https://api.github.com/users/cheapie/repos","events_url":"https://api.github.com/users/cheapie/events{/privacy}","received_events_url":"https://api.github.com/users/cheapie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cheapie/technic","description":"Technic mod for Minetest","fork":true,"url":"https://api.github.com/repos/cheapie/technic","forks_url":"https://api.github.com/repos/cheapie/technic/forks","keys_url":"https://api.github.com/repos/cheapie/technic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cheapie/technic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cheapie/technic/teams","hooks_url":"https://api.github.com/repos/cheapie/technic/hooks","issue_events_url":"https://api.github.com/repos/cheapie/technic/issues/events{/number}","events_url":"https://api.github.com/repos/cheapie/technic/events","assignees_url":"https://api.github.com/repos/cheapie/technic/assignees{/user}","branches_url":"https://api.github.com/repos/cheapie/technic/branches{/branch}","tags_url":"https://api.github.com/repos/cheapie/technic/tags","blobs_url":"https://api.github.com/repos/cheapie/technic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cheapie/technic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cheapie/technic/git/refs{/sha}","trees_url":"https://api.github.com/repos/cheapie/technic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cheapie/technic/statuses/{sha}","languages_url":"https://api.github.com/repos/cheapie/technic/languages","stargazers_url":"https://api.github.com/repos/cheapie/technic/stargazers","contributors_url":"https://api.github.com/repos/cheapie/technic/contributors","subscribers_url":"https://api.github.com/repos/cheapie/technic/subscribers","subscription_url":"https://api.github.com/repos/cheapie/technic/subscription","commits_url":"https://api.github.com/repos/cheapie/technic/commits{/sha}","git_commits_url":"https://api.github.com/repos/cheapie/technic/git/commits{/sha}","comments_url":"https://api.github.com/repos/cheapie/technic/comments{/number}","issue_comment_url":"https://api.github.com/repos/cheapie/technic/issues/comments{/number}","contents_url":"https://api.github.com/repos/cheapie/technic/contents/{+path}","compare_url":"https://api.github.com/repos/cheapie/technic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cheapie/technic/merges","archive_url":"https://api.github.com/repos/cheapie/technic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cheapie/technic/downloads","issues_url":"https://api.github.com/repos/cheapie/technic/issues{/number}","pulls_url":"https://api.github.com/repos/cheapie/technic/pulls{/number}","milestones_url":"https://api.github.com/repos/cheapie/technic/milestones{/number}","notifications_url":"https://api.github.com/repos/cheapie/technic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cheapie/technic/labels{/name}","releases_url":"https://api.github.com/repos/cheapie/technic/releases{/id}","deployments_url":"https://api.github.com/repos/cheapie/technic/deployments","created_at":"2018-08-18T17:59:22Z","updated_at":"2018-08-18T21:30:26Z","pushed_at":"2018-08-18T21:30:24Z","git_url":"git://github.com/cheapie/technic.git","ssh_url":"git@github.com:cheapie/technic.git","clone_url":"https://github.com/cheapie/technic.git","svn_url":"https://github.com/cheapie/technic","homepage":null,"size":16813,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"minetest-mods:master","ref":"master","sha":"9b40d02fbd9e8c39c5c64cc7de89a7fe45382f04","user":{"login":"minetest-mods","id":16545761,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NTQ1NzYx","avatar_url":"https://avatars3.githubusercontent.com/u/16545761?v=4","gravatar_id":"","url":"https://api.github.com/users/minetest-mods","html_url":"https://github.com/minetest-mods","followers_url":"https://api.github.com/users/minetest-mods/followers","following_url":"https://api.github.com/users/minetest-mods/following{/other_user}","gists_url":"https://api.github.com/users/minetest-mods/gists{/gist_id}","starred_url":"https://api.github.com/users/minetest-mods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minetest-mods/subscriptions","organizations_url":"https://api.github.com/users/minetest-mods/orgs","repos_url":"https://api.github.com/users/minetest-mods/repos","events_url":"https://api.github.com/users/minetest-mods/events{/privacy}","received_events_url":"https://api.github.com/users/minetest-mods/received_events","type":"Organization","site_admin":false},"repo":{"id":5490765,"node_id":"MDEwOlJlcG9zaXRvcnk1NDkwNzY1","name":"technic","full_name":"minetest-mods/technic","owner":{"login":"minetest-mods","id":16545761,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NTQ1NzYx","avatar_url":"https://avatars3.githubusercontent.com/u/16545761?v=4","gravatar_id":"","url":"https://api.github.com/users/minetest-mods","html_url":"https://github.com/minetest-mods","followers_url":"https://api.github.com/users/minetest-mods/followers","following_url":"https://api.github.com/users/minetest-mods/following{/other_user}","gists_url":"https://api.github.com/users/minetest-mods/gists{/gist_id}","starred_url":"https://api.github.com/users/minetest-mods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minetest-mods/subscriptions","organizations_url":"https://api.github.com/users/minetest-mods/orgs","repos_url":"https://api.github.com/users/minetest-mods/repos","events_url":"https://api.github.com/users/minetest-mods/events{/privacy}","received_events_url":"https://api.github.com/users/minetest-mods/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/minetest-mods/technic","description":"Technic mod for Minetest","fork":false,"url":"https://api.github.com/repos/minetest-mods/technic","forks_url":"https://api.github.com/repos/minetest-mods/technic/forks","keys_url":"https://api.github.com/repos/minetest-mods/technic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minetest-mods/technic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minetest-mods/technic/teams","hooks_url":"https://api.github.com/repos/minetest-mods/technic/hooks","issue_events_url":"https://api.github.com/repos/minetest-mods/technic/issues/events{/number}","events_url":"https://api.github.com/repos/minetest-mods/technic/events","assignees_url":"https://api.github.com/repos/minetest-mods/technic/assignees{/user}","branches_url":"https://api.github.com/repos/minetest-mods/technic/branches{/branch}","tags_url":"https://api.github.com/repos/minetest-mods/technic/tags","blobs_url":"https://api.github.com/repos/minetest-mods/technic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minetest-mods/technic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minetest-mods/technic/git/refs{/sha}","trees_url":"https://api.github.com/repos/minetest-mods/technic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minetest-mods/technic/statuses/{sha}","languages_url":"https://api.github.com/repos/minetest-mods/technic/languages","stargazers_url":"https://api.github.com/repos/minetest-mods/technic/stargazers","contributors_url":"https://api.github.com/repos/minetest-mods/technic/contributors","subscribers_url":"https://api.github.com/repos/minetest-mods/technic/subscribers","subscription_url":"https://api.github.com/repos/minetest-mods/technic/subscription","commits_url":"https://api.github.com/repos/minetest-mods/technic/commits{/sha}","git_commits_url":"https://api.github.com/repos/minetest-mods/technic/git/commits{/sha}","comments_url":"https://api.github.com/repos/minetest-mods/technic/comments{/number}","issue_comment_url":"https://api.github.com/repos/minetest-mods/technic/issues/comments{/number}","contents_url":"https://api.github.com/repos/minetest-mods/technic/contents/{+path}","compare_url":"https://api.github.com/repos/minetest-mods/technic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minetest-mods/technic/merges","archive_url":"https://api.github.com/repos/minetest-mods/technic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minetest-mods/technic/downloads","issues_url":"https://api.github.com/repos/minetest-mods/technic/issues{/number}","pulls_url":"https://api.github.com/repos/minetest-mods/technic/pulls{/number}","milestones_url":"https://api.github.com/repos/minetest-mods/technic/milestones{/number}","notifications_url":"https://api.github.com/repos/minetest-mods/technic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minetest-mods/technic/labels{/name}","releases_url":"https://api.github.com/repos/minetest-mods/technic/releases{/id}","deployments_url":"https://api.github.com/repos/minetest-mods/technic/deployments","created_at":"2012-08-21T05:17:09Z","updated_at":"2018-08-19T14:12:53Z","pushed_at":"2018-08-18T21:30:25Z","git_url":"git://github.com/minetest-mods/technic.git","ssh_url":"git@github.com:minetest-mods/technic.git","clone_url":"https://github.com/minetest-mods/technic.git","svn_url":"https://github.com/minetest-mods/technic","homepage":null,"size":16811,"stargazers_count":77,"watchers_count":77,"language":"Lua","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":94,"mirror_url":null,"archived":false,"open_issues_count":47,"license":null,"forks":94,"open_issues":47,"watchers":77,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/minetest-mods/technic/pulls/437"},"html":{"href":"https://github.com/minetest-mods/technic/pull/437"},"issue":{"href":"https://api.github.com/repos/minetest-mods/technic/issues/437"},"comments":{"href":"https://api.github.com/repos/minetest-mods/technic/issues/437/comments"},"review_comments":{"href":"https://api.github.com/repos/minetest-mods/technic/pulls/437/comments"},"review_comment":{"href":"https://api.github.com/repos/minetest-mods/technic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/minetest-mods/technic/pulls/437/commits"},"statuses":{"href":"https://api.github.com/repos/minetest-mods/technic/statuses/f58aa000292c1e78e8c1b0c4951df56b6384d79b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"numberZero"}}