{"action":"created","issue":{"url":"https://api.github.com/repos/BlockMen/torches/issues/6","labels_url":"https://api.github.com/repos/BlockMen/torches/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/BlockMen/torches/issues/6/comments","events_url":"https://api.github.com/repos/BlockMen/torches/issues/6/events","html_url":"https://github.com/BlockMen/torches/pull/6","id":66958518,"number":6,"title":"Update init.lua","user":{"login":"TomasJLuis","id":11815440,"avatar_url":"https://avatars.githubusercontent.com/u/11815440?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasJLuis","html_url":"https://github.com/TomasJLuis","followers_url":"https://api.github.com/users/TomasJLuis/followers","following_url":"https://api.github.com/users/TomasJLuis/following{/other_user}","gists_url":"https://api.github.com/users/TomasJLuis/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasJLuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasJLuis/subscriptions","organizations_url":"https://api.github.com/users/TomasJLuis/orgs","repos_url":"https://api.github.com/users/TomasJLuis/repos","events_url":"https://api.github.com/users/TomasJLuis/events{/privacy}","received_events_url":"https://api.github.com/users/TomasJLuis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-07T18:17:12Z","updated_at":"2015-04-08T18:26:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/BlockMen/torches/pulls/6","html_url":"https://github.com/BlockMen/torches/pull/6","diff_url":"https://github.com/BlockMen/torches/pull/6.diff","patch_url":"https://github.com/BlockMen/torches/pull/6.patch"},"body":"I've added these functions to detect if player is placing torches in water.\r\nThen you call iswet(pos) from 'on_place' and if it's true then avoid placing torch."},"comment":{"url":"https://api.github.com/repos/BlockMen/torches/issues/comments/90995682","html_url":"https://github.com/BlockMen/torches/pull/6#issuecomment-90995682","issue_url":"https://api.github.com/repos/BlockMen/torches/issues/6","id":90995682,"user":{"login":"TomasJLuis","id":11815440,"avatar_url":"https://avatars.githubusercontent.com/u/11815440?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasJLuis","html_url":"https://github.com/TomasJLuis","followers_url":"https://api.github.com/users/TomasJLuis/followers","following_url":"https://api.github.com/users/TomasJLuis/following{/other_user}","gists_url":"https://api.github.com/users/TomasJLuis/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasJLuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasJLuis/subscriptions","organizations_url":"https://api.github.com/users/TomasJLuis/orgs","repos_url":"https://api.github.com/users/TomasJLuis/repos","events_url":"https://api.github.com/users/TomasJLuis/events{/privacy}","received_events_url":"https://api.github.com/users/TomasJLuis/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T18:26:47Z","updated_at":"2015-04-08T18:26:47Z","body":"@HybridDog \r\nI've found the way to fix it:\r\n`function iswet (pos)`\r\n\t`local pi = pos`\r\n\t`local p0 = {x = pos.x, y = pos.y + 1, z = pos.z}`\r\n\t`local p1 = {x = pos.x - 1, y = pos.y, z = pos.z}`\r\n\t`local p2 = {x = pos.x + 1, y = pos.y, z = pos.z}`\r\n\t`local p3 = {x = pos.x, y = pos.y, z = pos.z + 1}`\r\n\t`local p4 = {x = pos.x, y = pos.y, z = pos.z - 1}`\r\n\t`return iswater(pi) or iswater(p0) or iswater(p1) or iswater(p2) or iswater(p3) or iswater(p4)`\r\n`end`\r\n\r\nI know it's more complicated but it works in more cases.\r\nHowever this cause another issue: you cannot place torches at the block just after flowing water. Any idea how to fix it."}}