Skip to content

Commit

Permalink
Put robot name in JSON
Browse files Browse the repository at this point in the history
Robot display was mistakenly put in robot name.
  • Loading branch information
xsebek authored Jul 21, 2024
1 parent 5c461eb commit 897b7fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swarm-engine/Swarm/Game/Robot/Concrete.hs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ instance Ae.ToJSON Robot where
Ae.object $
catMaybes
[ "id" .== (r ^. robotID)
, "name" .== (r ^. robotEntity . entityDisplay)
, "name" .== (r ^. robotEntity . entityName)
, "description" .=? (r ^. robotEntity . entityDescription) $ mempty
, "loc" .== (r ^. robotLocation)
, "dir" .=? (r ^. robotEntity . entityOrientation) $ zero
Expand Down

0 comments on commit 897b7fb

Please sign in to comment.