just to change from disabling spawn chunks to control over its size. Removes disableSpawnChunks, adds spawnChunksSize. Fixes #192

This commit is contained in:
gnembon committed 2020-04-13 00:59:55 -03:00
1 parent 19a01bee1b
commit 2a1d5542f1
12 files changed
+178 -75

No files matched your search

@@ -0,0 +1,12 @@
package carpet.fakes;
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
import net.minecraft.server.world.ChunkTicket;
import net.minecraft.util.SortedArraySet;
import net.minecraft.util.math.ChunkPos;
public interface ChunkTicketManagerInterface
{
void changeSpawnChunks(ChunkPos pos, int distance);
Long2ObjectOpenHashMap<SortedArraySet<ChunkTicket<?>>> getTicketsByPosition();
}
@@ -0,0 +1,8 @@
package carpet.fakes;
import net.minecraft.server.world.ChunkTicketManager;
public interface ServerChunkManagerInterface
{
ChunkTicketManager getTicketManager();
}