mirror of
https://github.com/swarm-game/swarm.git
synced 2024-10-05 20:19:09 +03:00
Fix default robot direction
I am not sure what it was doing, but it was not what I expected. Now it should accept missing dir field.
This commit is contained in:
parent
faad903863
commit
956dcb9ecf
@ -497,7 +497,7 @@ instance FromJSONE EntityMap TRobot where
|
||||
<$> liftE (v .: "name")
|
||||
<*> liftE (v .:? "description" .!= [])
|
||||
<*> liftE (v .:? "loc")
|
||||
<*> liftE (v .: "dir" .!= zero)
|
||||
<*> liftE (v .:? "dir" .!= zero)
|
||||
<*> liftE (v .:? "display" .!= defaultRobotDisplay)
|
||||
<*> liftE (mkMachine <$> (v .:? "program"))
|
||||
<*> v ..:? "devices" ..!= []
|
||||
|
Loading…
Reference in New Issue
Block a user