         (println "\n----->")
         (println
           (cond
-            (= packet-type :keepalive) (read-packet-keepalive conn)
-            (= packet-type :handshake) (read-packet-handshake conn)
-            (= packet-type :login) (read-packet-login conn)
-            (= packet-type :chat) (read-packet-chat conn)
-            (= packet-type :timeupdate) (read-packet-timeupdate conn)
-            (= packet-type :equipment) (read-packet-equipment conn)
+            (= packet-type :keepalive)     (read-packet-keepalive conn)
+            (= packet-type :handshake)     (read-packet-handshake conn)
+            (= packet-type :login)         (read-packet-login conn)
+            (= packet-type :chat)          (read-packet-chat conn)
+            (= packet-type :timeupdate)    (read-packet-timeupdate conn)
+            (= packet-type :equipment)     (read-packet-equipment conn)
             (= packet-type :spawnposition) (read-packet-spawnposition conn)
-            (= packet-type :useentity) (read-packet-useentity conn)
-            (= packet-type :updatehealth) (read-packet-updatehealth conn)
+            (= packet-type :useentity)     (read-packet-useentity conn)
+            (= packet-type :updatehealth)  (read-packet-updatehealth conn)
+            (= packet-type :respawn)       (read-packet-respawn conn)
             :else (str "UNKNOWN PACKET TYPE: " packet-id)
             ))
         (println "\n\n\n")))

     0x06 :spawnposition
     0x07 :useentity
     0x08 :updatehealth
})
(def packet-ids (apply assoc {} (mapcat reverse packet-types)))


      (cond
        (= packet-type :keepalive) (write-packet-handshake conn payload)
        (= packet-type :handshake) (write-packet-handshake conn payload)
        (= packet-type :login)     (write-packet-login conn payload)
        (= packet-type :chat)      (write-packet-chat conn payload)
        (= packet-type :respawn)   (write-packet-respawn conn payload)
        )
      (flushc conn))

