Rename perform to perform!
author |
Steve Losh <steve@stevelosh.com> |
date |
Fri, 26 Aug 2011 19:12:34 -0400 |
parents |
5e3e3e14ea5c
|
children |
eb53408ae5e0
|
branches/tags |
(none) |
files |
src/clojurecraft/actions.clj src/clojurecraft/core.clj |
Changes
--- a/src/clojurecraft/actions.clj Fri Aug 26 19:11:44 2011 -0400
+++ b/src/clojurecraft/actions.clj Fri Aug 26 19:12:34 2011 -0400
@@ -51,7 +51,7 @@
(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!
--- a/src/clojurecraft/core.clj Fri Aug 26 19:11:44 2011 -0400
+++ b/src/clojurecraft/core.clj Fri Aug 26 19:12:34 2011 -0400
@@ -100,7 +100,7 @@
(while (nil? (:exit @conn))
(let [action (.poll actionqueue 1 TimeUnit/SECONDS)]
(when action
- (actions/perform action)))))
+ (actions/perform! action)))))
(println "done - action handler")
(println "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"))