minecraft-debugger
minecraft-debugger copied to clipboard
[Bug] Stepping through a one line function in a array doesn't step through each iteration and breaks.
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.