mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 12:19:46 +00:00
Fix unnecessary cast in CompositeLensRecipe
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user