mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 11:18:26 +02:00
fixed an issue with a default argument being an int instead of a list
This commit is contained in:
parent
3286f7e070
commit
409fa2d4e2
1 changed files with 2 additions and 2 deletions
|
@ -526,7 +526,7 @@ class Game:
|
|||
image = Image.new(
|
||||
generator.get("format", "RGB"),
|
||||
(generator["width"], generator["height"]),
|
||||
tuple(generator.get("color", 0))
|
||||
tuple(generator.get("color", [0]))
|
||||
)
|
||||
draw = ImageDraw.Draw(image)
|
||||
|
||||
|
@ -535,7 +535,7 @@ class Game:
|
|||
if layer["type"] == "color":
|
||||
draw.rectangle(
|
||||
get_layer_bbox(layer),
|
||||
tuple(layer.get("color", 0))
|
||||
tuple(layer.get("color", [0]))
|
||||
)
|
||||
if layer["type"] == "image":
|
||||
layer_image = Image.open(f'{self.common.ct_config.pack_path}/file/{layer["path"]}')
|
||||
|
|
Loading…
Reference in a new issue