Fix tick allocation

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-09-04 03:03:06 +02:00
parent df92939ddd
commit 4f382c5684

View File

@ -286,7 +286,6 @@ public class PlayerSocketConnection extends PlayerConnection {
try {
if (!waitingBuffer.writeChannel(channel)) break;
iterator.remove();
waitingBuffer.clear();
POOLED_BUFFERS.add(new SoftReference<>(waitingBuffer));
} catch (IOException e) {
final String message = e.getMessage();
@ -297,8 +296,6 @@ public class PlayerSocketConnection extends PlayerConnection {
shouldDisconnect = true;
}
}
// Update tick buffer
this.tickBuffer = getPooledBuffer();
}
if (shouldDisconnect) disconnect();
}