{"action":"created","issue":{"url":"https://api.github.com/repos/Nukkit/Nukkit/issues/204","labels_url":"https://api.github.com/repos/Nukkit/Nukkit/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/Nukkit/Nukkit/issues/204/comments","events_url":"https://api.github.com/repos/Nukkit/Nukkit/issues/204/events","html_url":"https://github.com/Nukkit/Nukkit/issues/204","id":123683205,"number":204,"title":"Strange behavior of player inventory in MCW10E","user":{"login":"fromgate","id":1344181,"avatar_url":"https://avatars.githubusercontent.com/u/1344181?v=3","gravatar_id":"","url":"https://api.github.com/users/fromgate","html_url":"https://github.com/fromgate","followers_url":"https://api.github.com/users/fromgate/followers","following_url":"https://api.github.com/users/fromgate/following{/other_user}","gists_url":"https://api.github.com/users/fromgate/gists{/gist_id}","starred_url":"https://api.github.com/users/fromgate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fromgate/subscriptions","organizations_url":"https://api.github.com/users/fromgate/orgs","repos_url":"https://api.github.com/users/fromgate/repos","events_url":"https://api.github.com/users/fromgate/events{/privacy}","received_events_url":"https://api.github.com/users/fromgate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-23T16:03:09Z","updated_at":"2015-12-23T17:38:33Z","closed_at":null,"body":"Hello!\r\nI notice strange behavior of method player.getInventory().addItem() in Minecraft: Windows 10 Edition.\r\n\r\nHere is simple code:\r\n```\r\n    @Override\r\n    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\r\n        if (!command.getName().equalsIgnoreCase(\"test\")) return false;\r\n        Player player = sender instanceof Player ? (Player) sender : null;\r\n        if (player==null) return false;\r\n        Item item = new Item(Item.WOODEN_AXE);\r\n        player.getInventory().addItem(item);\r\n        return true;\r\n    }\r\n```\r\n\r\nIn Minecraft Pocket Edition it will work fine - and you'll find wooden axe in player inventory\r\n\r\nBut in Windows 10 Minecraft inventory clears. If you leave the server and join again you will that your inventory is in normal state. \r\n\r\nAnother problems that I noticed in Windows 10:\r\nWhen you picking up an item some item in hotbar are disappearing. If you press \"E\" (to show inventory) items will return \r\n\r\n\r\nAnyone has same problem? Is it bug of Windows 10 Edition? Or something else?"},"comment":{"url":"https://api.github.com/repos/Nukkit/Nukkit/issues/comments/166952706","html_url":"https://github.com/Nukkit/Nukkit/issues/204#issuecomment-166952706","issue_url":"https://api.github.com/repos/Nukkit/Nukkit/issues/204","id":166952706,"user":{"login":"ProjectInfinity","id":593870,"avatar_url":"https://avatars.githubusercontent.com/u/593870?v=3","gravatar_id":"","url":"https://api.github.com/users/ProjectInfinity","html_url":"https://github.com/ProjectInfinity","followers_url":"https://api.github.com/users/ProjectInfinity/followers","following_url":"https://api.github.com/users/ProjectInfinity/following{/other_user}","gists_url":"https://api.github.com/users/ProjectInfinity/gists{/gist_id}","starred_url":"https://api.github.com/users/ProjectInfinity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProjectInfinity/subscriptions","organizations_url":"https://api.github.com/users/ProjectInfinity/orgs","repos_url":"https://api.github.com/users/ProjectInfinity/repos","events_url":"https://api.github.com/users/ProjectInfinity/events{/privacy}","received_events_url":"https://api.github.com/users/ProjectInfinity/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T17:38:33Z","updated_at":"2015-12-23T17:38:33Z","body":"I've noticed similar issues on PocketMine with both Windows 10 and on Android. So not sure if this is specific to Nukkit."}}