{"action":"opened","issue":{"url":"https://api.github.com/repos/aidancbrady/Mekanism/issues/2611","labels_url":"https://api.github.com/repos/aidancbrady/Mekanism/issues/2611/labels{/name}","comments_url":"https://api.github.com/repos/aidancbrady/Mekanism/issues/2611/comments","events_url":"https://api.github.com/repos/aidancbrady/Mekanism/issues/2611/events","html_url":"https://github.com/aidancbrady/Mekanism/issues/2611","id":72181525,"number":2611,"title":"Dynamic tank infinite fluid","user":{"login":"tossaponk","id":12187008,"avatar_url":"https://avatars.githubusercontent.com/u/12187008?v=3","gravatar_id":"","url":"https://api.github.com/users/tossaponk","html_url":"https://github.com/tossaponk","followers_url":"https://api.github.com/users/tossaponk/followers","following_url":"https://api.github.com/users/tossaponk/following{/other_user}","gists_url":"https://api.github.com/users/tossaponk/gists{/gist_id}","starred_url":"https://api.github.com/users/tossaponk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tossaponk/subscriptions","organizations_url":"https://api.github.com/users/tossaponk/orgs","repos_url":"https://api.github.com/users/tossaponk/repos","events_url":"https://api.github.com/users/tossaponk/events{/privacy}","received_events_url":"https://api.github.com/users/tossaponk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-30T14:35:50Z","updated_at":"2015-04-30T14:35:50Z","closed_at":null,"body":"Dynamic tank will not draining fluid from the pipe network if the tank is at its full capacity.\r\n\r\nif(doFill)\r\n{\r\n\tdynamicTank.structure.fluidStored.amount = getCapacity(); << This will cause subsequent call for getNeeded to return 0 thus making infinite fluid.\r\n\t\t\t\t\t\r\n\tif(getNeeded() > 0)\r\n\t{\r\n\t\tMekanismUtils.saveChunk(dynamicTank);\r\n\t\tupdateValveData(true);\r\n\t\tdynamicTank.sendPacketToRenderer();\r\n\t\tupdateValveData(false);\r\n\t}\r\n}\r\n\r\nreturn getNeeded();"}}