Destroyed portals not removed from portals file. #9


  • Defect
  • Accepted
Open
Assigned to akriegeeer
  • _ForgeUser7923785 created this issue Jan 14, 2014

    When ever you destroy a portal the info for it in the portals file won't be removed, this can cause problems if you have the chunk load radius enabled as the chunk that had the portal will still remain loaded afterwards. The only way to fix it really is to manually edit the removed gates out of the portals file, or wiping the portals file, but there's no way to reload  the portals config without doing a potential server crashing /reload or restarting the server.

  • _ForgeUser7923785 added the tags New Defect Jan 14, 2014
  • akriegeeer posted a comment Jan 14, 2014

    You're almost right. The fact the portal is still in the portals list has nothing to do with whether or not the chunks remain force loaded. When the portal restarts, it checks that a portal actually is present at the given locations, and only force-loads chunks if a portal is still there. So destroying a portal and restarting the server will work. However, you are correct that you *must* restart the server to do this safely. I'll make a note to add a portal refresh command to do this safely at runtime.

  • akriegeeer posted a comment Jan 14, 2014

    https://github.com/akrieger/Nethrar/blob/master/src/org/akrieger/Nethrar/PortalUtil.java#L482 is the only place where chunks are added to the force load list, and that function is only called when creating a new portal after verifying its physical presence (either when entering one or at startup).

  • akriegeeer removed a tag New Jan 14, 2014
  • akriegeeer added a tag Accepted Jan 14, 2014

To post a comment, please login or register a new account.