only show first 25 items (for testing)

This commit is contained in:
NatureFreshMilk 2020-01-10 08:02:35 +01:00
parent 22272917bb
commit 91907f1f1b

View File

@ -12,7 +12,7 @@ m.request("./data/nodes.json")
.map(name => nodes[name])
.forEach(node => list.push(node));
const rows = list
let rows = list
.filter(node => !(node.groups && node.groups.not_in_creative_inventory == 1))
.map(node => {
return m("tr", [
@ -21,6 +21,9 @@ m.request("./data/nodes.json")
]);
});
// Only show the first few items
rows = rows.splice(0, 25);
const table = m("table", [
m("thead", [
m("th", [