Fix unnecessary cast in CompositeLensRecipe

This commit is contained in:
Vincent Lee committed 2020-02-07 13:55:04 -06:00
1 parent d46c35df14
commit 647e122418
1 file changed
+1 -2
@@ -19,7 +19,6 @@ import net.minecraft.item.crafting.SpecialRecipeSerializer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import vazkii.botania.api.mana.ICompositableLens;
import vazkii.botania.common.item.lens.ItemLens;
import javax.annotation.Nonnull;
@@ -74,7 +73,7 @@ public class CompositeLensRecipe extends SpecialRecipe {
return ItemStack.EMPTY;
ItemStack lensCopy = lens.copy();
((ItemLens) lens.getItem()).setCompositeLens(lensCopy, secondLens);
lensItem.setCompositeLens(lensCopy, secondLens);
return lensCopy;
}