Skip to content

Commit

Permalink
change names
Browse files Browse the repository at this point in the history
  • Loading branch information
AI-WAIFU committed Aug 2, 2023
1 parent e72ee02 commit 67efd39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions minetester/minetest_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ def __init__(
self._set_graphics(headless, display_size, fov)

# Define action and observation space
self._configure_obs_space()
self._configure_spaces()

# Define Minetest paths
self._set_artefact_dirs(artefact_dir, world_dir, config_path, config_dict) #Stores minetest artefacts and outputs
self._set_minetest_folders(minetest_root) #Stores actual minetest dirs and executable
self._set_minetest_dirs(minetest_root) #Stores actual minetest dirs and executable

# Whether to start minetest server and client
self.start_minetest = start_minetest
Expand Down Expand Up @@ -123,7 +123,7 @@ def __init__(
self.x_display = x_display or self.default_display + 4
self.xserver_process = start_xserver(self.x_display, self.display_size)

def _configure_obs_space(self):
def _configure_spaces(self):
# Define action and observation space
self.max_mouse_move_x = self.display_size[0]
self.max_mouse_move_y = self.display_size[1]
Expand Down Expand Up @@ -153,7 +153,7 @@ def _set_graphics(self, headless, display_size, fov):
self.fov_y = fov
self.fov_x = self.fov_y * self.display_size[0] / self.display_size[1]

def _set_minetest_folders(self, minetest_root):
def _set_minetest_dirs(self, minetest_root):
self.minetest_root = minetest_root
if self.minetest_root is None:
#check for local install
Expand Down

0 comments on commit 67efd39

Please sign in to comment.