fixed bug that broke item interactions.
This commit is contained in:
@@ -8,7 +8,8 @@
|
||||
:get-script (fn [cursor [x y]]
|
||||
(if (= :main cursor)
|
||||
(:script spec)
|
||||
(get-in spec [:scripts cursor])))}))
|
||||
(when-let [scripts (:scripts spec)]
|
||||
(scripts cursor))))}))
|
||||
entities (into {} (for [[id entity] entities]
|
||||
[id (merge entity
|
||||
{:mouse-in? (fn [entities x y]
|
||||
@@ -20,7 +21,8 @@
|
||||
{:get-script (fn [cursor [x y]]
|
||||
(if (= :main cursor)
|
||||
(:script entity)
|
||||
(get-in entity [:scripts cursor])))}))]))]
|
||||
(when-let [scripts (:scripts entity)]
|
||||
(scripts cursor))))}))]))]
|
||||
(merge params {:collision (advent.pathfind/map-from-resource collision)
|
||||
:interactions interactions-as-list
|
||||
:entities entities})))
|
||||
|
||||
Reference in New Issue
Block a user