diff --git a/js/tiletypes.js b/js/tiletypes.js index 4c24042..fc0b405 100644 --- a/js/tiletypes.js +++ b/js/tiletypes.js @@ -26,9 +26,7 @@ function on_begin_force_floor(me, level) { // doing this here; decision time hasn't happened yet, but we need to know what direction we're // moving to know whether bestowal happens? so what IS the cause of item bestowal? let neighbor = level.get_neighboring_cell(me.cell, actor.direction); - if (! neighbor) - return; - if (neighbor.try_entering(actor, actor.direction, level)) + if (neighbor && neighbor.try_entering(actor, actor.direction, level)) return; let item = me.cell.get_item(); if (! item)