{"action":"opened","issue":{"url":"https://api.github.com/repos/brandon3055/Draconic-Evolution/issues/1117","repository_url":"https://api.github.com/repos/brandon3055/Draconic-Evolution","labels_url":"https://api.github.com/repos/brandon3055/Draconic-Evolution/issues/1117/labels{/name}","comments_url":"https://api.github.com/repos/brandon3055/Draconic-Evolution/issues/1117/comments","events_url":"https://api.github.com/repos/brandon3055/Draconic-Evolution/issues/1117/events","html_url":"https://github.com/brandon3055/Draconic-Evolution/issues/1117","id":333509833,"node_id":"MDU6SXNzdWUzMzM1MDk4MzM=","number":1117,"title":"Another Shield Countermeasure (NBT Tag manipulation.)","user":{"login":"ruifung","id":1073945,"node_id":"MDQ6VXNlcjEwNzM5NDU=","avatar_url":"https://avatars0.githubusercontent.com/u/1073945?v=4","gravatar_id":"","url":"https://api.github.com/users/ruifung","html_url":"https://github.com/ruifung","followers_url":"https://api.github.com/users/ruifung/followers","following_url":"https://api.github.com/users/ruifung/following{/other_user}","gists_url":"https://api.github.com/users/ruifung/gists{/gist_id}","starred_url":"https://api.github.com/users/ruifung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruifung/subscriptions","organizations_url":"https://api.github.com/users/ruifung/orgs","repos_url":"https://api.github.com/users/ruifung/repos","events_url":"https://api.github.com/users/ruifung/events{/privacy}","received_events_url":"https://api.github.com/users/ruifung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-19T03:48:57Z","updated_at":"2018-06-19T03:48:57Z","closed_at":null,"author_association":"NONE","body":"Judging by the commit in https://github.com/elytra/MagicArsenal/commit/d816711d14b702cfbb69a512bd4d883bfd40e5c7\r\n\r\nIt looks like it's directly changing the armor's NBT tags to disable shielding.\r\nJust thought you'd like to know.\r\n\r\n```\r\n+public class DracEvoCompat {\r\n+\tpublic static void deployCountermeasures(EntityLivingBase target) {\r\n+\t\tfor(ItemStack item : target.getArmorInventoryList()) {\r\n+\t\t\tif (item==null || item.isEmpty()) continue;\r\n+\t\t\tNBTTagCompound tag = item.getTagCompound();\r\n+\t\t\tif (tag==null) continue;\r\n+\t\t\tif (tag.hasKey(\"ProtectionPoints\")) {\r\n+\t\t\t\ttag.setFloat(\"ProtectionPoints\", 0);\r\n+\t\t\t}\r\n+\t\t\t\r\n+\t\t\tif (tag.hasKey(\"ShieldEntropy\")) {\r\n+\t\t\t\t tag.setFloat(\"ShieldEntropy\", 0);\r\n+\t\t\t}\r\n+\t\t}\r\n+\t}\r\n+}\r\n```"}}
{"actor":{"display_login":"ruifung"}}