{"action":"closed","issue":{"url":"https://api.github.com/repos/SpongePowered/SpongeVanilla/issues/220","repository_url":"https://api.github.com/repos/SpongePowered/SpongeVanilla","labels_url":"https://api.github.com/repos/SpongePowered/SpongeVanilla/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/SpongePowered/SpongeVanilla/issues/220/comments","events_url":"https://api.github.com/repos/SpongePowered/SpongeVanilla/issues/220/events","html_url":"https://github.com/SpongePowered/SpongeVanilla/issues/220","id":131740006,"number":220,"title":"Inventory Set error","user":{"login":"chrismack","id":1420361,"avatar_url":"https://avatars.githubusercontent.com/u/1420361?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismack","html_url":"https://github.com/chrismack","followers_url":"https://api.github.com/users/chrismack/followers","following_url":"https://api.github.com/users/chrismack/following{/other_user}","gists_url":"https://api.github.com/users/chrismack/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismack/subscriptions","organizations_url":"https://api.github.com/users/chrismack/orgs","repos_url":"https://api.github.com/users/chrismack/repos","events_url":"https://api.github.com/users/chrismack/events{/privacy}","received_events_url":"https://api.github.com/users/chrismack/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-05T19:53:33Z","updated_at":"2016-02-10T23:00:26Z","closed_at":"2016-02-10T23:00:26Z","body":"When setting a slot that contains no item causes an error to be thrown:\r\n\r\norg.spongepowered.common.item.inventory.util.NativeStackException: The supplied native item stack was not compatible with the target environment\r\n\r\n```\r\nItemStack apple = Sponge.getRegistry().createBuilder(ItemStack.Builder.class).itemType(ItemTypes.GOLDEN_APPLE).quantity(1).build();\r\n\t\tInventory slot = player.getInventory().query(new SlotIndex(6)).first();\r\n\t\t\r\n\t\tslot.set(apple);\r\n```\r\nThis is probably a SpongeCommon but i thought i would put it here as I haven't tested on sponge forge\r\n"}}