Increase cache from 10s to 30s for the chunk & light packet

This commit is contained in:
themode 2021-03-06 21:17:16 +01:00
parent 74d902b2a2
commit 3b918a9382
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ import java.util.UUID;
public class ChunkDataPacket implements ServerPacket, CacheablePacket {
private static final BlockManager BLOCK_MANAGER = MinecraftServer.getBlockManager();
private static final TemporaryCache<TimedBuffer> CACHE = new TemporaryCache<>(10000L);
private static final TemporaryCache<TimedBuffer> CACHE = new TemporaryCache<>(30000L);
public boolean fullChunk;
public Biome[] biomes;

View File

@ -14,7 +14,7 @@ import java.util.UUID;
public class UpdateLightPacket implements ServerPacket, CacheablePacket {
private static final TemporaryCache<TimedBuffer> CACHE = new TemporaryCache<>(10000L);
private static final TemporaryCache<TimedBuffer> CACHE = new TemporaryCache<>(30000L);
public int chunkX;
public int chunkZ;