diff --git a/src/rosegold/packets/connection.cr b/src/rosegold/packets/connection.cr index 9fdb0a89..93fe45f0 100644 --- a/src/rosegold/packets/connection.cr +++ b/src/rosegold/packets/connection.cr @@ -112,7 +112,7 @@ class Rosegold::Connection(InboundPacket, OutboundPacket) end def send_packet(packet_bytes : Bytes) - raise "Disconnected: #{close_reason}" if close_reason + raise Rosegold::Client::NotConnected.new if close_reason if compress? Minecraft::IO::Memory.new.tap do |buffer|