From bb97515d13f6f88cee09c35eda43062371f733d1 Mon Sep 17 00:00:00 2001 From: Aymeric Wibo Date: Sat, 10 Aug 2024 13:04:23 +0200 Subject: [PATCH] world: Make copy of `sameas.block_face_textures`, as this can be modified for a different block in subsequent properties --- community/src/world.py | 2 +- episode-11/world.py | 2 +- episode-12/world.py | 2 +- episode-13/src/world.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/community/src/world.py b/community/src/world.py index d6bb03b..a3216ea 100644 --- a/community/src/world.py +++ b/community/src/world.py @@ -79,7 +79,7 @@ def __init__(self, shader, player: Player | None, texture_manager, options): if sameas is not None: name = sameas.name - texture = sameas.block_face_textures + texture = dict(sameas.block_face_textures) model = sameas.model elif prop[0] == "name": diff --git a/episode-11/world.py b/episode-11/world.py index 3c60818..f4b81d8 100644 --- a/episode-11/world.py +++ b/episode-11/world.py @@ -45,7 +45,7 @@ def __init__(self): sameas_number = int(prop[1]) name = self.block_types[sameas_number].name - texture = self.block_types[sameas_number].block_face_textures + texture = dict(self.block_types[sameas_number].block_face_textures) model = self.block_types[sameas_number].model elif prop[0] == "name": diff --git a/episode-12/world.py b/episode-12/world.py index b76ad10..b8c5e33 100644 --- a/episode-12/world.py +++ b/episode-12/world.py @@ -45,7 +45,7 @@ def __init__(self): sameas_number = int(prop[1]) name = self.block_types[sameas_number].name - texture = self.block_types[sameas_number].block_face_textures + texture = dict(self.block_types[sameas_number].block_face_textures) model = self.block_types[sameas_number].model elif prop[0] == "name": diff --git a/episode-13/src/world.py b/episode-13/src/world.py index d808dfd..7520242 100644 --- a/episode-13/src/world.py +++ b/episode-13/src/world.py @@ -44,7 +44,7 @@ def __init__(self): if sameas is not None: name = sameas.name - texture = sameas.block_face_textures + texture = dict(sameas.block_face_textures) model = sameas.model elif prop[0] == "name":