satisfy monadFail
This commit is contained in:
parent
abb3ad3cd3
commit
8438454477
1 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,8 @@ computerObjectTransition
|
||||||
-> Maybe Ent
|
-> Maybe Ent
|
||||||
-> SystemT Entity m (Entity 'SetterOf)
|
-> SystemT Entity m (Entity 'SetterOf)
|
||||||
computerObjectTransition ObjComputer "off" pa ent (Just aent) = do
|
computerObjectTransition ObjComputer "off" pa ent (Just aent) = do
|
||||||
[dir] <- efor (anEnt aent) (query rot)
|
ldir <- efor (anEnt aent) (query rot)
|
||||||
|
let dir = head ldir
|
||||||
e <- efor (anEnt ent) $ do
|
e <- efor (anEnt ent) $ do
|
||||||
solved <- queryMaybe objSolved
|
solved <- queryMaybe objSolved
|
||||||
if pa
|
if pa
|
||||||
|
|
Loading…
Reference in a new issue