From 43be975722f595578760422d4381a1c834162040 Mon Sep 17 00:00:00 2001
From: fheinrich <fheinrich@techfak.uni-bielefeld.de>
Date: Tue, 30 Jan 2024 13:53:33 +0100
Subject: [PATCH] Fixed kitchen borders when grid starts at 1

---
 overcooked_simulator/overcooked_environment.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/overcooked_simulator/overcooked_environment.py b/overcooked_simulator/overcooked_environment.py
index 538669e8..84d63128 100644
--- a/overcooked_simulator/overcooked_environment.py
+++ b/overcooked_simulator/overcooked_environment.py
@@ -320,8 +320,8 @@ class Environment:
                 current_x += 1
             current_y += 1
 
-        self.kitchen_width: float = len(lines[0])
-        self.kitchen_height = len(lines)
+        self.kitchen_width: float = len(lines[0]) + starting_at
+        self.kitchen_height = len(lines) + starting_at
         self.counter_factory.post_counter_setup(counters)
 
         return counters, designated_player_positions, free_positions
-- 
GitLab