minecraft-debugger icon indicating copy to clipboard operation
minecraft-debugger copied to clipboard

[Bug] Stepping through a one line function in a array doesn't step through each iteration and breaks.

Open mrpatches123 opened this issue 4 years ago • 0 comments

every time I step through

const test = [];
const array = Array.from(Array(256), (item, i) => ({ x: i % 16, z: Math.floor(i / 16) % 16 }))
  .filter(({ x, z }) => {
    const entities = overworld.getEntitiesAtBlockLocation(new BlockLocation(x, -64, z));
    test.shift(entities.length);
    return Boolean(entities.length);
});

it does not step through each iteration of the map function in the Array.from like node.js does, but it does not hang up. Contrastly, when it reaches the filter it doesn't hang up but doesn't step through each iteration, and undefined shows in the debug console.

mrpatches123 avatar Feb 09 '22 02:02 mrpatches123