Fix a crash with slide_ignores when using the CC1 inventory

This commit is contained in:
Eevee (Evelyn Woods) committed 2021-02-28 18:36:59 -07:00
1 parent 0ca0467192
commit 3bc6aa9c7d
1 file changed
+2
+2
View File
@@ -116,6 +116,8 @@ export class Tile {
if (this.toolbelt) { if (this.toolbelt) {
for (let item of this.toolbelt) { for (let item of this.toolbelt) {
if (! item)
continue;
let item_type = TILE_TYPES[item]; let item_type = TILE_TYPES[item];
if (item_type.item_slide_ignores && item_type.item_slide_ignores.has(name)) if (item_type.item_slide_ignores && item_type.item_slide_ignores.has(name))
return true; return true;