package ru.dbotthepony.kstarbound.client.network.packets

import ru.dbotthepony.kstarbound.client.ClientConnection
import ru.dbotthepony.kstarbound.network.IClientPacket
import java.io.DataOutputStream

object LeaveWorldPacket : IClientPacket {
	override fun write(stream: DataOutputStream, isLegacy: Boolean) {

	}

	override fun play(connection: ClientConnection) {
		connection.client.mailbox.execute {
			connection.client.world = null
		}
	}
}
