Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7512

Add method to clear loaded map_N.data cache

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • It's important for feature request?
    • Yes

      Hello.

      Please add method World#clearLoadedMapData() (or Server#clearLoadedMapData(), I'm unsure how it works "under the hood") that will clear all loaded map_N.data files from RAM, so the next time the server needs to render the map (for example, if a chunk is loaded in which it hangs on the wall in a frame), it will load the corresponding map_N.data file from the disk into RAM again).

      Why I'm need this? To save time when using the site to generate maps from images (e.g. https://rebane2001.com/mapartcraft/). Currently, every time after manually replacing the map file in the world/data folder, I need to completely restart the server. Having one method to reload one map data file or all of the files from disk at once would help a lot. IIRC currently there are no ways to do this. And I need this ability for almost two months now..

      If you have any other ideas on how to do the same (clear loaded map(s) data from RAM), please share them.

            Unassigned Unassigned
            molor Zhenya Zima
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: