mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-15 02:49:28 -05:00
prevent crash when looking up skins of sprite by x,y
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
for (const element of sprites) {
|
||||
const x = element.dataset.x;
|
||||
const y = element.dataset.y;
|
||||
const skins = itemset_skins[x][y] ?? [];
|
||||
const skins = itemset_skins[x] && itemset_skins[x][y] ? itemset_skins[x][y] : [];
|
||||
|
||||
let hasPosition = false;
|
||||
let hasItem = false;
|
||||
|
||||
Reference in New Issue
Block a user