making cat toys.

This commit is contained in:
2014-10-30 18:18:36 -07:00
parent 825912e2c3
commit 51ae5e3a09
6 changed files with 26 additions and 11 deletions

View File

@@ -91,7 +91,7 @@
(if highlighted-item
(if (= :main current-cursor)
(run! @(resolve 'advent.screens.scene/scene) :on-chose-item :item highlighted-item)
(when-let [interaction-script ((or (:scripts highlighted-item) (constantly nil)) current-cursor)]
(when-let [interaction-script ((or (:scripts highlighted-item) (constantly nil)) (:value current-cursor))]
(interaction-script room-entities)
(close entities)))
(close entities)))))