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