{"action":"closed","issue":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2961","repository_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge","labels_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2961/labels{/name}","comments_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2961/comments","events_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2961/events","html_url":"https://github.com/MinecraftForge/MinecraftForge/issues/2961","id":158625895,"number":2961,"title":"FluidUtil.interactWithFluidHandler doesn't modify FluidTank in ItemStack ","user":{"login":"Choonster","id":878073,"avatar_url":"https://avatars.githubusercontent.com/u/878073?v=3","gravatar_id":"","url":"https://api.github.com/users/Choonster","html_url":"https://github.com/Choonster","followers_url":"https://api.github.com/users/Choonster/followers","following_url":"https://api.github.com/users/Choonster/following{/other_user}","gists_url":"https://api.github.com/users/Choonster/gists{/gist_id}","starred_url":"https://api.github.com/users/Choonster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Choonster/subscriptions","organizations_url":"https://api.github.com/users/Choonster/orgs","repos_url":"https://api.github.com/users/Choonster/repos","events_url":"https://api.github.com/users/Choonster/events{/privacy}","received_events_url":"https://api.github.com/users/Choonster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/labels/Fluids","name":"Fluids","color":"0052cc"},{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/labels/Superseded","name":"Superseded","color":"aaaaaa"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-06T08:34:20Z","updated_at":"2016-06-14T03:01:34Z","closed_at":"2016-06-14T03:01:34Z","body":"When the `IFluidHandler` capability of an `ItemStack` is a `FluidTank` rather than a wrapper around the vanilla NBT (e.g. `FluidHandlerItemStack`), `FluidUtil.interactWithFluidHandler` won't modify its contents.\r\n\r\nI use a `FluidTank` in the `ItemBlock` form of my fluid tank [here](https://github.com/Choonster/TestMod3/blob/87bd66f955bb309197edcdfc4d53e3ad164daa76/src/main/java/com/choonster/testmod3/item/block/ItemFluidTank.java#L72-L75) (`SimpleCapabilityProvider` simply provides a single capability handler instance) and interact with held fluid containers in the `Block` form [here](https://github.com/Choonster/TestMod3/blob/87bd66f955bb309197edcdfc4d53e3ad164daa76/src/main/java/com/choonster/testmod3/block/BlockFluidTank.java#L108-L126).\r\n\r\nWhen I right click a tank block while holding a tank item, the block will be drained or filled but the item won't be modified."}}
{"actor":{"display_login":"LexManos"}}