cd03086eadf7

Fix bot entity id recording.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 26 Aug 2011 20:12:02 -0400
parents eb53408ae5e0
children aa67f93d6fe4
branches/tags (none)
files src/clojurecraft/core.clj

Changes

--- a/src/clojurecraft/core.clj	Fri Aug 26 19:16:54 2011 -0400
+++ b/src/clojurecraft/core.clj	Fri Aug 26 20:12:02 2011 -0400
@@ -44,7 +44,7 @@
   (write-packet bot :login {:version 14 :username username})
 
   ; Get login
-  (get (read-packet bot nil nil nil) 1))
+  (get (get (read-packet bot nil nil nil) 0) 1))
 
 
 (defn input-handler [bot]