mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 13:08:19 +01:00
Fix tick allocation
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
df92939ddd
commit
4f382c5684
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user