fix elv portal treating lexicon as illegal item (#47)

This commit is contained in:
Glease authored and GitHub committed 2024-03-07 11:04:18 +01:00
1 parent d179ee57e9
commit 8f1d0abbeb
1 file changed
+5
@@ -178,6 +178,11 @@ public class TileAlfPortal extends TileMod {
}
private boolean validateItemUsage(ItemStack inputStack) {
if (inputStack.getItem() instanceof ILexicon) {
// lexicon does not formally have a recipe and is handled in a special branch
// in resolveRecipe(), therefore it needs a special branch here as well
return true;
}
for(RecipeElvenTrade recipe : BotaniaAPI.elvenTradeRecipes) {
for(Object o : recipe.getInputs()) {
if(o instanceof String) {