mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-23 16:41:35 +01:00
Update packet caching timestamp when retrieved
This commit is contained in:
parent
7e452cdd74
commit
b6d96098f8
@ -145,10 +145,9 @@ public class NettyPlayerConnection extends PlayerConnection {
|
||||
if (shouldUpdate) {
|
||||
final ByteBuf buffer = PacketUtils.createFramedPacket(serverPacket, false);
|
||||
timedBuffer = new TimedBuffer(buffer, timestamp);
|
||||
|
||||
temporaryCache.cache(identifier, timedBuffer);
|
||||
}
|
||||
|
||||
temporaryCache.cache(identifier, timedBuffer);
|
||||
write(new FramedPacket(timedBuffer.getBuffer()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user