Fix #347 again...

Lit redstone ore has no item attached to it, so the method was wrongly returning false after I added the null item check
This commit is contained in:
ljfa 2015-12-29 20:55:49 +01:00
parent d5dc5bf328
commit a30b908e80

View file

@ -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)