Use the stack sensitive unloc name in seed matcher

Fixes KitchenCraft seeds not working with the apothecary
This commit is contained in:
tterrag1098 committed 2015-05-10 02:20:57 -04:00
1 parent 95895b14bb
commit c4beac7172
1 file changed
+1 -1
@@ -97,7 +97,7 @@ public class TileAltar extends TileSimpleInventory implements ISidedInventory, I
break;
}
}
} else if(stack.getItem() != null && SEED_PATTERN.matcher(stack.getItem().getUnlocalizedName()).find()) {
} else if(stack.getItem() != null && SEED_PATTERN.matcher(stack.getItem().getUnlocalizedName(stack)).find()) {
for(RecipePetals recipe : BotaniaAPI.petalRecipes) {
if(recipe.matches(this)) {
for(int i = 0; i < getSizeInventory(); i++)