mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Restrict ores from the ore dictionary to only those that are blocks.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user