11 lines
374 B
Groovy
Raw Normal View History

import net.minecraft.item.ItemStack
import classes.postInit.Common
/* Cleanup EIO Glasses in JEI, removing the dyed versions of each variant of glass
* Since we are lazy, remove all, then add back the original
*/
for (var stack in Common.eioGlasses) {
mods.jei.ingredient.hide(new ItemStack(stack.getItem(), 1, Short.MAX_VALUE))
mods.jei.ingredient.add(stack.copy())
}