Remove unnecessary save from PlaygroundSystem
This commit is contained in:
@@ -44,9 +44,10 @@
|
|||||||
(when (catsMatch e .catsMatch (dictGet archive.playgrounds _playgroundKey))
|
(when (catsMatch e .catsMatch (dictGet archive.playgrounds _playgroundKey))
|
||||||
(when !(hasComponent e Positions)
|
(when !(hasComponent e Positions)
|
||||||
(addComponent archive e Positions (new Map)))
|
(addComponent archive e Positions (new Map)))
|
||||||
(withWritableComponents archive e [positions Positions]
|
(let [positions (readComponent e Positions)]
|
||||||
(when !(positions.exists _playgroundKey)
|
(when !(positions.exists _playgroundKey)
|
||||||
(dictSet positions _playgroundKey (defaultPosition e))))
|
(withWritableComponents archive e [positions Positions]
|
||||||
|
(dictSet positions _playgroundKey (defaultPosition e)))))
|
||||||
(let [pos (dictGet (readComponent e Positions) _playgroundKey)]
|
(let [pos (dictGet (readComponent e Positions) _playgroundKey)]
|
||||||
(processor archive e pos ui)))))
|
(processor archive e pos ui)))))
|
||||||
(set this.onRemoveEntry
|
(set this.onRemoveEntry
|
||||||
|
Reference in New Issue
Block a user