Fix a crash with slide_ignores when using the CC1 inventory

This commit is contained in:
Eevee (Evelyn Woods) 2021-02-28 18:36:59 -07:00
parent 0ca0467192
commit 3bc6aa9c7d

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;