Skip to content

Commit d522aa8

Browse files
committed
fix crafter bug
1 parent 526dd50 commit d522aa8

File tree

1 file changed

+2
-3
lines changed
  • balrog/environments/crafter

1 file changed

+2
-3
lines changed

balrog/environments/crafter/env.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def describe_env(
144144
obj_info_list = []
145145

146146
facing = info["player_facing"]
147-
max_y, max_x = semantic.shape
147+
max_x, max_y = semantic.shape
148148
target_x = center[0] + facing[0]
149149
target_y = center[1] + facing[1]
150150

@@ -258,8 +258,7 @@ def describe_frame(
258258

259259
return result.strip(), describe_inventory(info)
260260
except Exception:
261-
breakpoint()
262-
return "Error, you are out of the map."
261+
return "Error, you are out of the map.", describe_inventory(info)
263262

264263

265264
class CrafterLanguageWrapper(gym.Wrapper):

0 commit comments

Comments
 (0)