Skip to content

Commit

Permalink
fix test placement
Browse files Browse the repository at this point in the history
  • Loading branch information
noskill committed Jul 1, 2024
1 parent 79a8ffa commit 3ae5359
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tagilmo/VereyaPython/agent_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def onMissionControlMessage(self, xml: TimestampedString) -> Optional[None]:
return
assert self.current_mission_record is not None
if self.current_mission_record.isRecording():
missionEndedXML = open(self.current_mission_record.getMissionEndedPath(), 'aw')
missionEndedXML = open(self.current_mission_record.getMissionEndedPath(), 'w')
missionEndedXML.write(xml.text)
missionEndedXML.close()
self.close()
Expand Down
2 changes: 1 addition & 1 deletion tests/vereya/test_placement.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def test_placement(self):
mc = self.mc
rob = self.rob
time.sleep(1)
pos = rob.waitNotNoneObserve('getAgentPos')
grid = rob.getCachedObserve('getNearGrid')
pos = rob.getCachedObserve('getAgentPos')
x, y, z = [int(_) for _ in pos[:3]]
mc.sendCommand(f"placeBlock {x} {y + 2} {z} minecraft:dirt replace")
time.sleep(1)
Expand Down

0 comments on commit 3ae5359

Please sign in to comment.