This commit is contained in:
Jason Mitchell authored and GitHub committed 2024-02-17 16:07:32 -08:00
1 parent db3e5b6388
commit d5beca8e52
1 file changed
+3 -20
@@ -10,10 +10,6 @@
*/
package vazkii.botania.api.recipe;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
@@ -22,8 +18,6 @@ import vazkii.botania.api.subtile.SubTileEntity;
public class RecipePureDaisy {
private static final Map<String, List<ItemStack>> oreMap = new HashMap();
Object input;
Block output;
int outputMeta;
@@ -53,21 +47,10 @@ public class RecipePureDaisy {
if(stack == null || stack.getItem() == null)
return false;
List<ItemStack> ores;
if(oreMap.containsKey(entry))
ores = oreMap.get(entry);
else {
ores = OreDictionary.getOres(entry);
oreMap.put(entry, ores);
}
for(ItemStack ostack : ores) {
ItemStack cstack = ostack.copy();
if(cstack.getItemDamage() == Short.MAX_VALUE)
cstack.setItemDamage(stack.getItemDamage());
if(stack.isItemEqual(cstack))
for(ItemStack ostack : OreDictionary.getOres(entry, false)) {
if(OreDictionary.itemMatches(ostack, stack, false)) {
return true;
}
}
return false;