mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 23:27:09 +00:00
Fix #504 recipe preview error
This commit is contained in:
@@ -125,7 +125,7 @@ function placeItems(recipe: any, animation: number, itemTags: Map<string, any>)
|
||||
keys.set(key, choice)
|
||||
}
|
||||
}
|
||||
const pattern = recipe.pattern
|
||||
const pattern = Array.isArray(recipe.pattern) ? recipe.pattern : []
|
||||
for (let row = 0; row < Math.min(3, pattern.length); row += 1) {
|
||||
for (let col = 0; col < Math.min(3, pattern[row].length); col += 1) {
|
||||
const key = pattern[row].split('')[col]
|
||||
|
||||
Reference in New Issue
Block a user