Commits

Steve Losh committed 4693c1d

Rename perform to perform!

  • Participants
  • Parent commits 5e3e3e1

Comments (0)

Files changed (2)

File src/clojurecraft/actions.clj

   (write-packet bot :respawn {:world 0})) ; Always respawn in the normal (non-Nether) world for now.
 
 
-(defn perform [action]
+(defn perform! [action]
   (let [performer ({:move move!
                     :jump jump!
                     :chat chat!

File src/clojurecraft/core.clj

     (while (nil? (:exit @conn))
       (let [action (.poll actionqueue 1 TimeUnit/SECONDS)]
         (when action
-          (actions/perform action)))))
+          (actions/perform! action)))))
   (println "done - action handler")
   (println "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"))