mirror of
https://github.com/Minestom/Minestom.git
synced 2025-03-02 11:21:15 +01:00
Increase cache from 10s to 30s for the chunk & light packet
This commit is contained in:
parent
74d902b2a2
commit
3b918a9382
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user