From 6ca5d0fbfa9f82b390c34e60d60dc91a38cda9e5 Mon Sep 17 00:00:00 2001 From: Xiao-Xiong Lin Date: Thu, 31 Oct 2024 15:24:24 +0100 Subject: [PATCH] fixed manual control bug --- miniworld/manual_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniworld/manual_control.py b/miniworld/manual_control.py index 2f3ba374..c2b9505d 100644 --- a/miniworld/manual_control.py +++ b/miniworld/manual_control.py @@ -6,7 +6,7 @@ class ManualControl: def __init__(self, env, no_time_limit, domain_rand): - self.env = env + self.env = env.unwrapped if no_time_limit: self.env.max_episode_steps = math.inf