Merge pull request #2186 from MCUpdater/master

Restrict ores from the ore dictionary to only those that are blocks.
This commit is contained in:
Vasco Lavos authored and GitHub committed 2017-03-10 17:08:26 +00:00
commit 87283b7b9d
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;
}