Restrict ores from the ore dictionary to only those that are blocks.

This commit is contained in:
Scott M. Barbour committed 2017-03-05 23:18:32 -06:00
1 parent 20c6388ed3
commit cd5f70c566
1 file changed
+3
@@ -19,6 +19,7 @@ import net.minecraft.block.state.IBlockState;
import net.minecraft.block.state.pattern.BlockStateMatcher;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.WeightedRandom;
@@ -92,6 +93,8 @@ public class SubTileOrechid extends SubTileFunctional {
// and stick them in your behind.
if(clname.startsWith("gregtech") || clname.startsWith("gregapi"))
continue;
if(!(item instanceof ItemBlock))
continue;
return stack;
}