commit
789b3c2afb
|
@ -33,12 +33,13 @@ public class RitualEffectMagnetic extends RitualEffect
|
|||
|
||||
public static boolean isBlockOre(Block block, int meta)
|
||||
{
|
||||
if (block == null || Item.getItemFromBlock(block) == null)
|
||||
return false;
|
||||
|
||||
//Special case for lit redstone ore
|
||||
if (block instanceof BlockOre || block instanceof BlockRedstoneOre)
|
||||
return true;
|
||||
|
||||
if (block == null || Item.getItemFromBlock(block) == null)
|
||||
return false;
|
||||
|
||||
ItemType type = new ItemType(block, meta);
|
||||
Boolean result = oreBlockCache.get(type);
|
||||
if (result == null)
|
||||
|
|
Loading…
Reference in a new issue