Skip to content

Commit d0f1c8c

Browse files
committed
Add isPerWorld to the pattern render cache key
1 parent 78fead8 commit d0f1c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patterns/rendering.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function renderPattern(
3838
pattern: string,
3939
{ isPerWorld, darkMode }: PatternRenderingOptions,
4040
): Promise<RenderedImage> {
41-
const key = `${direction} ${pattern}`;
41+
const key = `${direction} ${pattern} ${isPerWorld ? "perWorld" : ""}`;
4242
if (patternImages.has(key)) {
4343
return patternImages.get(key)!!;
4444
}

0 commit comments

Comments
 (0)