File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -78,13 +78,13 @@ def nle_obsv_type(self, nle_obsv):
7878
7979 def render (self , mode = "human" ):
8080 if mode == "tiles" :
81- obs = self .env .last_observation
82- glyphs = obs [self .env ._observation_keys .index ("glyphs" )]
81+ obs = self .env .unwrapped . last_observation
82+ glyphs = obs [self .env .unwrapped . _observation_keys .index ("glyphs" )]
8383 return rgb_render_image (glyphs )
8484 elif mode == "tty_image" :
85- obs = self .env .last_observation
86- tty_chars = obs [self .env ._observation_keys .index ("tty_chars" )]
87- tty_colors = obs [self .env ._observation_keys .index ("tty_colors" )]
85+ obs = self .env .unwrapped . last_observation
86+ tty_chars = obs [self .env .unwrapped . _observation_keys .index ("tty_chars" )]
87+ tty_colors = obs [self .env .unwrapped . _observation_keys .index ("tty_colors" )]
8888 return tty_render_image (tty_chars , tty_colors )
8989 else :
9090 return super ().render (mode )
You can’t perform that action at this time.
0 commit comments