Skip to content

Commit 0eaabe9

Browse files
committed
minor cleanup
1 parent 1d21ab5 commit 0eaabe9

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

scripts/generate.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -376,17 +376,6 @@ const filterId = (input, full = null) => {
376376
input = `minecraft:block_of_${blockOnly}`;
377377
}
378378
}
379-
// addressing pluralization in vanilla minecraft ores, singular is the correct way
380-
// const oreList = ["gold", "iron", "diamond", "emerald", "netherite", "coal", "copper", "amethyst"];
381-
// if (input.includes("minecraft:") === true && input.includes("_ores") === true) {
382-
// // maybe a match...
383-
// const inputSlug = input.split("minecraft:").pop();
384-
// const blockOnly = inputSlug.split("_ores").shift();
385-
// if (blockList.includes(blockOnly) === true) {
386-
// // slice off the pluralization
387-
// input = input.slice(0, -1);
388-
// }
389-
// }
390379
// let's catch any unhandled for now
391380
if (input.includes("#c:") === true) { throw new Error (`Unhandled ID in filterId: ${input}`); }
392381
// if it didn't match it's...fine?

0 commit comments

Comments
 (0)