Skip to content

Commit

Permalink
world: Make copy of sameas.block_face_textures, as this can be modi…
Browse files Browse the repository at this point in the history
…fied for a different block in subsequent properties
  • Loading branch information
obiwac committed Aug 10, 2024
1 parent f139d7c commit bb97515
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion community/src/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
2 changes: 1 addition & 1 deletion episode-11/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
2 changes: 1 addition & 1 deletion episode-12/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
2 changes: 1 addition & 1 deletion episode-13/src/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit bb97515

Please sign in to comment.