Add support for marker set persistence, prevent add to non persistent

This commit is contained in:
Mike Primm 2020-08-12 10:08:36 -05:00
parent 7e38c4ef23
commit 252f9afcdb
3 changed files with 26 additions and 4 deletions

View file

@ -22,7 +22,7 @@ import org.dynmap.bukkit.helper.BukkitMaterial;
import org.dynmap.bukkit.helper.BukkitVersionHelperCB;
import org.dynmap.bukkit.helper.BukkitVersionHelperGeneric;
import org.dynmap.bukkit.helper.BukkitWorld;
import org.dynmap.bukkit.helper.v116.MapChunkCache115;
import org.dynmap.bukkit.helper.v116.MapChunkCache116;
import org.dynmap.renderer.DynmapBlockState;
import org.dynmap.utils.MapChunkCache;
import org.dynmap.utils.Polygon;
@ -141,7 +141,7 @@ public class BukkitVersionHelperSpigot116 extends BukkitVersionHelperGeneric {
*/
@Override
public MapChunkCache getChunkCache(BukkitWorld dw, List<DynmapChunk> chunks) {
MapChunkCache115 c = new MapChunkCache115();
MapChunkCache116 c = new MapChunkCache116();
c.setChunks(dw, chunks);
return c;
}

View file

@ -32,7 +32,7 @@ import net.minecraft.server.v1_16_R1.NBTTagList;
/**
* Container for managing chunks - dependent upon using chunk snapshots, since rendering is off server thread
*/
public class MapChunkCache115 extends AbstractMapChunkCache {
public class MapChunkCache116 extends AbstractMapChunkCache {
public static class NBTSnapshot implements Snapshot {
private static interface Section {