{"action":"created","issue":{"url":"https://api.github.com/repos/SleepyTrousers/EnderIO/issues/2671","labels_url":"https://api.github.com/repos/SleepyTrousers/EnderIO/issues/2671/labels{/name}","comments_url":"https://api.github.com/repos/SleepyTrousers/EnderIO/issues/2671/comments","events_url":"https://api.github.com/repos/SleepyTrousers/EnderIO/issues/2671/events","html_url":"https://github.com/SleepyTrousers/EnderIO/issues/2671","id":97253032,"number":2671,"title":"Wireless Charger forcing chunks to stay loaded when powered","user":{"login":"RoyCurtis","id":2047000,"avatar_url":"https://avatars.githubusercontent.com/u/2047000?v=3","gravatar_id":"","url":"https://api.github.com/users/RoyCurtis","html_url":"https://github.com/RoyCurtis","followers_url":"https://api.github.com/users/RoyCurtis/followers","following_url":"https://api.github.com/users/RoyCurtis/following{/other_user}","gists_url":"https://api.github.com/users/RoyCurtis/gists{/gist_id}","starred_url":"https://api.github.com/users/RoyCurtis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoyCurtis/subscriptions","organizations_url":"https://api.github.com/users/RoyCurtis/orgs","repos_url":"https://api.github.com/users/RoyCurtis/repos","events_url":"https://api.github.com/users/RoyCurtis/events{/privacy}","received_events_url":"https://api.github.com/users/RoyCurtis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SleepyTrousers/EnderIO/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/SleepyTrousers/EnderIO/labels/Code%20Complete","name":"Code Complete","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-25T20:24:08Z","updated_at":"2015-07-26T05:26:01Z","closed_at":null,"body":"When a Wireless Charger has power in its buffer, it forces its chunk to always stay loaded. This is regardless of any chargable machinery or items in its vicinity, or if a redstone signal turns off the wireless charger.\r\n\r\nThis causes surrounding chunks to load by other means such as conduits and machinery from other mods, which then become unloaded during auto-save and immediately loaded again by the Wireless Charger keeping the chunk alive.\r\n\r\n# Details\r\n\r\n## Discovered on\r\n\r\n* Direwolf20 1.7.10 1.5.0 and 1.6.1 live server\r\n* Forge 10.13.4.1448\r\n* [EnderIO 2.2.8.381](http://minecraft.curseforge.com/mc-mods/64578-ender-io/files/2238375)\r\n\r\n# Reproduction\r\n\r\n## Testing environment\r\n\r\n*Edit: Re-tested without Thermal suite*\r\n\r\n* Forge 1.7.10 10.13.4.1448\r\n* [EnderIO](http://ci.tterrag.com/job/EnderIO/) 2.3.0.403_beta\r\n* [EnderCore](http://ci.tterrag.com/job/EnderCore/) 0.0.1.13_alpha\r\n* [ChickenChunks](http://chickenbones.net/maven/codechicken/ChickenChunks/1.7.10-1.3.4.19/) 1.3.4.19 & [CodeChickenCore](http://chickenbones.net/maven/codechicken/CodeChickenCore/1.7.10-1.0.7.46/) 1.0.7.46 \r\n\r\n## Steps\r\n\r\n1. Create a flatland creative world with cheats enabled\r\n2. Execute `/tp 0 8 0` and then `/setworldspawn` (keeps spawn chunks away from testing areas)\r\n3. Execute `/tp 1000 8 1000`\r\n4. [Place an EnderIO wireless charger on the ground, with a Creative Capacitor Bank next to it](http://i.imgur.com/JsEtrK5.png)\r\n5. Execute `/tp 0 8 0`\r\n6. Press ESC to open the main menu and force a chunk purge\r\n7. Resume game and execute `/chunkloaders`. A new window will open under Minecraft\r\n8. [Observe that chunk with the Wireless Charger is kept loaded](http://i.imgur.com/KjShKlx.png)\r\n\r\n# Workarounds\r\n\r\nWireless Chargers only chunkload if they have power in their buffer. Therefore, drain the charger of any stored energy to prevent it from chunk loading. Note that applying a redstone signal to disable the charger has no effect.\r\n\r\n# Notes\r\n\r\nI discovered this bug as part of a [long running investigation as to why chunks are mysteriously loading and unloading at random on my server](https://www.reddit.com/r/feedthebeast/comments/3897ky/dw20_130_troubleshooting_mystery_forced_chunks/). It has since been found that other mods and bugs are contributing to this problem; this one in particular.\r\n\r\nTo determine the existence of this bug, I took an offline copy of an affected base and tore it down machine by machine (e.g. reactor, turbine, EnderIO conduits, etc) and teleported in and out, until I was able to unload the chunk.\r\n\r\nBecause of time constraints and lack of experience with the Ender IO codebase, I am unable to offer specific technical advice or pull requests. However, if it helps, please see this similar bug report I had filed for AE2:\r\n\r\n* [Multi-block ME controllers forcing chunks to stay loaded #1656](https://github.com/AppliedEnergistics/Applied-Energistics-2/issues/1656)\r\n* [Fix by yueh for the above bug](https://github.com/AppliedEnergistics/Applied-Energistics-2/commit/f5e3ae8949950428ebdb59c9f5b4bddfa0a156fc)"},"comment":{"url":"https://api.github.com/repos/SleepyTrousers/EnderIO/issues/comments/124946842","html_url":"https://github.com/SleepyTrousers/EnderIO/issues/2671#issuecomment-124946842","issue_url":"https://api.github.com/repos/SleepyTrousers/EnderIO/issues/2671","id":124946842,"user":{"login":"tterrag1098","id":3751664,"avatar_url":"https://avatars.githubusercontent.com/u/3751664?v=3","gravatar_id":"","url":"https://api.github.com/users/tterrag1098","html_url":"https://github.com/tterrag1098","followers_url":"https://api.github.com/users/tterrag1098/followers","following_url":"https://api.github.com/users/tterrag1098/following{/other_user}","gists_url":"https://api.github.com/users/tterrag1098/gists{/gist_id}","starred_url":"https://api.github.com/users/tterrag1098/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tterrag1098/subscriptions","organizations_url":"https://api.github.com/users/tterrag1098/orgs","repos_url":"https://api.github.com/users/tterrag1098/repos","events_url":"https://api.github.com/users/tterrag1098/events{/privacy}","received_events_url":"https://api.github.com/users/tterrag1098/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T05:26:01Z","updated_at":"2015-07-26T05:26:01Z","body":"That code change did nothing, `blockExists` is already checked by `isPoweredRedstone`"}}