Fix a crash with slide_ignores when using the CC1 inventory
This commit is contained in:
parent
0ca0467192
commit
3bc6aa9c7d
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user