Skip to content

Commit ec49c9b

Browse files
authored
fix crafter bug, you face {} at your front. (#50)
1 parent f4d4ddd commit ec49c9b

File tree

1 file changed

+1
-1
lines changed
  • balrog/environments/crafter

1 file changed

+1
-1
lines changed

balrog/environments/crafter/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def describe_env(info):
112112
target_y = center[1] + facing[1]
113113

114114
if 0 <= target_x < max_x and 0 <= target_y < max_y:
115-
target_id = semantic[int(target_y), int(target_x)]
115+
target_id = semantic[int(target_x), int(target_y)]
116116
target_item = id_to_item[target_id]
117117
obs = "You face {} at your front.".format(target_item)
118118
else:

0 commit comments

Comments
 (0)