Fixed lit redstone ore not being picked up.
This commit is contained in:
parent
487332ff8d
commit
db8586d4b7
|
@ -42,12 +42,15 @@ public class RitualMagnetic extends Ritual
|
||||||
|
|
||||||
public static boolean isBlockOre(Block block, int meta)
|
public static boolean isBlockOre(Block block, int meta)
|
||||||
{
|
{
|
||||||
if (block == null || Item.getItemFromBlock(block) == null)
|
if (block == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (block instanceof BlockOre || block instanceof BlockRedstoneOre)
|
if (block instanceof BlockOre || block instanceof BlockRedstoneOre)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
if (Item.getItemFromBlock(block) == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
BlockStack type = new BlockStack(block, meta);
|
BlockStack type = new BlockStack(block, meta);
|
||||||
Boolean result = oreBlockCache.get(type);
|
Boolean result = oreBlockCache.get(type);
|
||||||
if (result == null)
|
if (result == null)
|
||||||
|
|
Loading…
Reference in a new issue