Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Small tweaks

  • Loading branch information...
commit 71986b8ccfd048452b5118f02e070312f5104b08 1 parent ad44dfe
@CmdrDats authored
View
11 project.clj
@@ -1,4 +1,4 @@
-(defproject cljminecraft "1.0.2"
+(defproject cljminecraft "1.0.3-SNAPSHOT"
:description "Clojure for Bukkit Minecraft"
:dependencies [[org.clojure/clojure "1.4.0"]
[org.clojure/tools.logging "0.2.3"]
@@ -6,10 +6,13 @@
[org.bukkit/bukkit "1.4.5-R1.0"]
[clojure-complete "0.2.2"]
[cheshire "2.0.4"]
- [org.reflections/reflections "0.9.8"]]
+ [org.reflections/reflections "0.9.8"]
+ [org.getspout/spoutplugin "1.4.6-R0.2-SNAPSHOT"]]
+ :profiles {:dev {:dependencies []}}
:javac-options [ "-d" "classes/" "-source" "1.6" "-target" "1.6"]
:java-source-paths ["javasrc"]
- :uberjar-exclusions [#"org[/]bukkit[/](.*)"]
+ :uberjar-exclusions [#"(org|com|gnu)[/](bukkit|avaje|yaml|getspout|json|trove)[/](.*)" #"com[/]google[/]common[/](.*)" #"org[/]apache[/]commons[/](.*)" #"javax[/]persistence[/](.*)" #"net[/]sf[/]cglib[/](.*)"]
:repositories [["bukkit.snapshots" "http://repo.bukkit.org/content/repositories/snapshots"]
- ["bukkit.release" "http://repo.bukkit.org/content/repositories/releases"]]
+ ["bukkit.release" "http://repo.bukkit.org/content/repositories/releases"]
+ ["spout" "http://repo.spout.org"]]
)
View
2  src/cljminecraft/commands.clj
@@ -153,3 +153,5 @@
+
+
View
3  src/cljminecraft/entity.clj
@@ -8,7 +8,7 @@
type-keys
(let [entclasses
(filter #(not (nil? %))
- (map #(if-let [t (get entitytypes %)] (.getEntityClass type))
+ (map #(if-let [t (get entitytypes %)] (.getEntityClass t))
(if (coll? type-keys) type-keys [type-keys])))]
(if (not-empty entclasses)
(.getEntitiesByClasses world (into-array Class entclasses))
@@ -26,4 +26,3 @@
(let [type (get entitytypes (keyword entityname))]
(when (and type (.isSpawnable type))
(.spawnEntity (.getWorld location) location type))))
-
Please sign in to comment.
Something went wrong with that request. Please try again.