drain

open fun drain()

Run the sends queued since the last client tick. Called by the client tick heartbeat (MixinMinecraft): a live game tick is the only place a send runs — never a world load or a disconnect's teardown, which render without ticking. A send queued just before a disconnect therefore runs once the connection is gone, and ClientCommandCompat.send refuses it. Never throws: each entry answers its own caller.