{"action":"created","issue":{"url":"https://api.github.com/repos/SpongePowered/SpongeCommon/issues/846","repository_url":"https://api.github.com/repos/SpongePowered/SpongeCommon","labels_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/issues/846/labels{/name}","comments_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/issues/846/comments","events_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/issues/846/events","html_url":"https://github.com/SpongePowered/SpongeCommon/issues/846","id":165809221,"number":846,"title":"[1.10] Events sometimes don't have player in the cause when they should","user":{"login":"Meegooo","id":3753828,"avatar_url":"https://avatars.githubusercontent.com/u/3753828?v=3","gravatar_id":"","url":"https://api.github.com/users/Meegooo","html_url":"https://github.com/Meegooo","followers_url":"https://api.github.com/users/Meegooo/followers","following_url":"https://api.github.com/users/Meegooo/following{/other_user}","gists_url":"https://api.github.com/users/Meegooo/gists{/gist_id}","starred_url":"https://api.github.com/users/Meegooo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meegooo/subscriptions","organizations_url":"https://api.github.com/users/Meegooo/orgs","repos_url":"https://api.github.com/users/Meegooo/repos","events_url":"https://api.github.com/users/Meegooo/events{/privacy}","received_events_url":"https://api.github.com/users/Meegooo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SpongePowered/SpongeCommon/labels/1.10","name":"1.10","color":"5319e7"},{"url":"https://api.github.com/repos/SpongePowered/SpongeCommon/labels/bug","name":"bug","color":"D10800"},{"url":"https://api.github.com/repos/SpongePowered/SpongeCommon/labels/events","name":"events","color":"050085"}],"state":"open","locked":false,"assignee":{"login":"gabizou","id":1203877,"avatar_url":"https://avatars.githubusercontent.com/u/1203877?v=3","gravatar_id":"","url":"https://api.github.com/users/gabizou","html_url":"https://github.com/gabizou","followers_url":"https://api.github.com/users/gabizou/followers","following_url":"https://api.github.com/users/gabizou/following{/other_user}","gists_url":"https://api.github.com/users/gabizou/gists{/gist_id}","starred_url":"https://api.github.com/users/gabizou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabizou/subscriptions","organizations_url":"https://api.github.com/users/gabizou/orgs","repos_url":"https://api.github.com/users/gabizou/repos","events_url":"https://api.github.com/users/gabizou/events{/privacy}","received_events_url":"https://api.github.com/users/gabizou/received_events","type":"User","site_admin":false},"assignees":[{"login":"gabizou","id":1203877,"avatar_url":"https://avatars.githubusercontent.com/u/1203877?v=3","gravatar_id":"","url":"https://api.github.com/users/gabizou","html_url":"https://github.com/gabizou","followers_url":"https://api.github.com/users/gabizou/followers","following_url":"https://api.github.com/users/gabizou/following{/other_user}","gists_url":"https://api.github.com/users/gabizou/gists{/gist_id}","starred_url":"https://api.github.com/users/gabizou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabizou/subscriptions","organizations_url":"https://api.github.com/users/gabizou/orgs","repos_url":"https://api.github.com/users/gabizou/repos","events_url":"https://api.github.com/users/gabizou/events{/privacy}","received_events_url":"https://api.github.com/users/gabizou/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-07-15T15:08:36Z","updated_at":"2016-09-15T19:06:01Z","closed_at":null,"body":"Examples\r\n\r\n1. We have that structure in world (http://i.imgur.com/SZO3PWK.jpg)\r\nWhen I click the lever, two `ChangeBlockEvent.Break` events are fired. \r\nFirst one is piston extension being removed. It doesn't have player in the cause (http://i.imgur.com/tF05TeI.png)\r\nSecond one is sand block turning into FallingSand. That one has two causes, both are EntityFallingBlock (http://i.imgur.com/FRT9Yw4.png)\r\n\r\n2. Just moving block with piston\r\nWhen I click the lever, `ChangeBlockEvent.Break` fires for breaking stone and placing piston extension (although I think it should be Place?). Only Piston as the cause (http://i.imgur.com/BYsKM8F.png)\r\nThen goes ChangeBlockEvent.Modify for piston state change. Still no player in the cause (http://i.imgur.com/LrRxpxs.png)\r\nThen this weird event, which I want to have nothing to do with. But for the record, still, no players (http://i.imgur.com/qsvyKEm.png)\r\nAnd finally, new stone block being placed with TWO causes, both of them are the same piston (http://i.imgur.com/0aEJEvz.png)\r\n\r\n3. TNT\r\nWhen TNT explodes, ChangeBlockEvent.Break with bunch of transactions is fired. No Player in the cause (http://i.imgur.com/8hbcX7S.png). Tried to ignite TNT with lever and with dispenser (second one worked correctly before, i'm 100% sure)\r\n\r\nPS. This is probably global bug with causes, but I was too lazy to test other events than ChangeBlockEvent. Maybe later.\r\n#838, #843 and partially #833 are probably related\r\nI used SpongeForge, if that matters\r\n\r\nUPD:\r\nKilling pig with TNT ignited with the lever had player in the cause.\r\nKilling pig with TNT spawned by dispenser (activated by the lever) didn't have one (http://i.imgur.com/4UcQ3fw.png)\r\nKilling pig with arrows from dispenser (activated with a lever). No player cause (http://i.imgur.com/U3XGYOI.png)\r\nKilling pig with an anvil has the player cause (http://i.imgur.com/VgFCFsU.png)"},"comment":{"url":"https://api.github.com/repos/SpongePowered/SpongeCommon/issues/comments/247421766","html_url":"https://github.com/SpongePowered/SpongeCommon/issues/846#issuecomment-247421766","issue_url":"https://api.github.com/repos/SpongePowered/SpongeCommon/issues/846","id":247421766,"user":{"login":"modwizcode","id":369772,"avatar_url":"https://avatars.githubusercontent.com/u/369772?v=3","gravatar_id":"","url":"https://api.github.com/users/modwizcode","html_url":"https://github.com/modwizcode","followers_url":"https://api.github.com/users/modwizcode/followers","following_url":"https://api.github.com/users/modwizcode/following{/other_user}","gists_url":"https://api.github.com/users/modwizcode/gists{/gist_id}","starred_url":"https://api.github.com/users/modwizcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modwizcode/subscriptions","organizations_url":"https://api.github.com/users/modwizcode/orgs","repos_url":"https://api.github.com/users/modwizcode/repos","events_url":"https://api.github.com/users/modwizcode/events{/privacy}","received_events_url":"https://api.github.com/users/modwizcode/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T19:06:01Z","updated_at":"2016-09-15T19:06:01Z","body":"@gabizou Does this solve https://github.com/SpongePowered/SpongeCommon/issues/729? They seemed to be related, but I can't quite determine if the fix is properly related to the problem described. "}}
{"actor":{"display_login":"modwizcode"}}