Refactor ore processing to reduce globals
This commit is contained in:
parent
bd7e91e19e
commit
e77dbea18a
1 changed files with 68 additions and 68 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
onEvent('recipes', event => {
|
||||||
const resourceFromName = (metal, type, qty) => {
|
const resourceFromName = (metal, type, qty) => {
|
||||||
const mc = Item.of(`${qty || 1}x minecraft:${metal}_${type}`);
|
const mc = Item.of(`${qty || 1}x minecraft:${metal}_${type}`);
|
||||||
const thermal = Item.of(`${qty || 1}x thermal:${metal}_${type}`);
|
const thermal = Item.of(`${qty || 1}x thermal:${metal}_${type}`);
|
||||||
|
|
@ -76,7 +77,6 @@ const toIngots = event => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
onEvent('recipes', event => {
|
|
||||||
remove(event);
|
remove(event);
|
||||||
toNuggets(event);
|
toNuggets(event);
|
||||||
toDust(event);
|
toDust(event);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue