{"action":"created","issue":{"url":"https://api.github.com/repos/SpongePowered/SpongeForge/issues/2532","repository_url":"https://api.github.com/repos/SpongePowered/SpongeForge","labels_url":"https://api.github.com/repos/SpongePowered/SpongeForge/issues/2532/labels{/name}","comments_url":"https://api.github.com/repos/SpongePowered/SpongeForge/issues/2532/comments","events_url":"https://api.github.com/repos/SpongePowered/SpongeForge/issues/2532/events","html_url":"https://github.com/SpongePowered/SpongeForge/issues/2532","id":389633379,"node_id":"MDU6SXNzdWUzODk2MzMzNzk=","number":2532,"title":"ClickInventoryEvent.Shift cannot meet the demand","user":{"login":"zhourui123","id":17756918,"node_id":"MDQ6VXNlcjE3NzU2OTE4","avatar_url":"https://avatars2.githubusercontent.com/u/17756918?v=4","gravatar_id":"","url":"https://api.github.com/users/zhourui123","html_url":"https://github.com/zhourui123","followers_url":"https://api.github.com/users/zhourui123/followers","following_url":"https://api.github.com/users/zhourui123/following{/other_user}","gists_url":"https://api.github.com/users/zhourui123/gists{/gist_id}","starred_url":"https://api.github.com/users/zhourui123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhourui123/subscriptions","organizations_url":"https://api.github.com/users/zhourui123/orgs","repos_url":"https://api.github.com/users/zhourui123/repos","events_url":"https://api.github.com/users/zhourui123/events{/privacy}","received_events_url":"https://api.github.com/users/zhourui123/received_events","type":"User","site_admin":false},"labels":[{"id":934416397,"node_id":"MDU6TGFiZWw5MzQ0MTYzOTc=","url":"https://api.github.com/repos/SpongePowered/SpongeForge/labels/status:%20needs%20triage","name":"status: needs triage","color":"EAEAEA","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-11T07:44:16Z","updated_at":"2018-12-11T12:05:12Z","closed_at":null,"author_association":"NONE","body":"**I am currently running**\r\n<!-- If you don't use the latest version, please tell us why. -->\r\n- SpongeForge version:  1.12.2-2768-7.1.4\r\n- Forge version: 1.12.2-2768\r\n- Java version: java 8\r\n- Operating System: win 10\r\n\r\n<!-- Please include ALL mods/plugins you had installed when your issue happened, you can get a list of \r\n        your mods and plugins by running \"/sponge plugins\" and/or \"/sponge mods\" -->\r\n- Plugins/Mods:\r\nmfbl_common_plugin-1.0.jar /sponge plugin\r\nmfbl-1.0.jar / forge mod( both side own)\r\n\r\n<!-- Please include as much information as possible. For the description, assume we have no idea how \r\n        mods work, be as detailed as possible and include a step by step reproduction. It is recommended \r\n        you try to reproduce the issue you are having yourself with as few mods as possible. -->\r\n**Issue Description**\r\nI want disable player undress leather_chestplate, so i cancelled the following events:\r\nClickInventoryEvent.Primary,\r\nClickInventoryEvent.Secondary\r\nClickInventoryEvent.Shift\r\n\r\ncode like this for every event:\r\n`\r\nif (event.getCursorTransaction().getOriginal().getType().equals(ItemTypes.LEATHER_CHESTPLATE)) {\r\n\tevent.setCancelled(true);\r\n}\r\n`\r\n`\r\nif (event.getCursorTransaction().getFinal().getType().equals(ItemTypes.LEATHER_CHESTPLATE)) {\r\n\tevent.setCancelled(true);\r\n}\r\n`\r\nPrimary and Secondary event work well, in shift event, getOriginal()/getFinal() always return 'air', Is this a bug?\r\n\r\n\r\n<!-- Please provide a *full* server log (and crash-report if applicable).\r\n        Go to https://gist.github.com/ and upload them there, then paste the resulting link here!\r\n        Don't use hastebin/pastebin or other similar sites, as they have a history of quickly\r\n        deleting files before we can look at them. -->\r\n"},"comment":{"url":"https://api.github.com/repos/SpongePowered/SpongeForge/issues/comments/446179336","html_url":"https://github.com/SpongePowered/SpongeForge/issues/2532#issuecomment-446179336","issue_url":"https://api.github.com/repos/SpongePowered/SpongeForge/issues/2532","id":446179336,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjE3OTMzNg==","user":{"login":"zhourui123","id":17756918,"node_id":"MDQ6VXNlcjE3NzU2OTE4","avatar_url":"https://avatars2.githubusercontent.com/u/17756918?v=4","gravatar_id":"","url":"https://api.github.com/users/zhourui123","html_url":"https://github.com/zhourui123","followers_url":"https://api.github.com/users/zhourui123/followers","following_url":"https://api.github.com/users/zhourui123/following{/other_user}","gists_url":"https://api.github.com/users/zhourui123/gists{/gist_id}","starred_url":"https://api.github.com/users/zhourui123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhourui123/subscriptions","organizations_url":"https://api.github.com/users/zhourui123/orgs","repos_url":"https://api.github.com/users/zhourui123/repos","events_url":"https://api.github.com/users/zhourui123/events{/privacy}","received_events_url":"https://api.github.com/users/zhourui123/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T12:05:12Z","updated_at":"2018-12-11T12:05:12Z","author_association":"NONE","body":"can you tell me how do i cancel shift specifying item? I print line every content of shift event, doesn't get any useful infomation."}}
{"actor":{"display_login":"zhourui123"}}