{"action":"closed","issue":{"url":"https://api.github.com/repos/lare96/asteria-3.0/issues/3","labels_url":"https://api.github.com/repos/lare96/asteria-3.0/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/lare96/asteria-3.0/issues/3/comments","events_url":"https://api.github.com/repos/lare96/asteria-3.0/issues/3/events","html_url":"https://github.com/lare96/asteria-3.0/issues/3","id":64666716,"number":3,"title":"Packet 87 sending incorrect data to client.","user":{"login":"CTucker1327","id":5876772,"avatar_url":"https://avatars.githubusercontent.com/u/5876772?v=3","gravatar_id":"","url":"https://api.github.com/users/CTucker1327","html_url":"https://github.com/CTucker1327","followers_url":"https://api.github.com/users/CTucker1327/followers","following_url":"https://api.github.com/users/CTucker1327/following{/other_user}","gists_url":"https://api.github.com/users/CTucker1327/gists{/gist_id}","starred_url":"https://api.github.com/users/CTucker1327/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CTucker1327/subscriptions","organizations_url":"https://api.github.com/users/CTucker1327/orgs","repos_url":"https://api.github.com/users/CTucker1327/repos","events_url":"https://api.github.com/users/CTucker1327/events{/privacy}","received_events_url":"https://api.github.com/users/CTucker1327/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-27T00:53:25Z","updated_at":"2015-03-28T23:40:17Z","closed_at":"2015-03-28T23:40:17Z","body":"Current implementation is sending a short with a ByteOrder of Big and an int with a ByteOrder of big. Short should have a ByteOrder of LITTLE and the Int should have a ByteOrder of MIDDLE.\r\nHere's the correct implementation: \r\n\r\n```\r\n    public PacketEncoder sendIntState(int id, int state) {\r\n        DataBuffer out = DataBuffer.create();\r\n        out.newPacket(87, player.getSession().getEncryptor());\r\n        out.putShort(id, ByteOrder.LITTLE);\r\n        out.putInt(state, ByteOrder.MIDDLE);\r\n        player.getSession().send(out);\r\n        return this;\r\n    }\r\n````"}}