1
0
Fork 0

fixed silk-touch looking up fortune blocks instead of silk touch blocks

This commit is contained in:
lightling 2019-09-19 14:59:15 -04:00
parent 144f52ba96
commit 7a0a5a5313

View file

@ -173,8 +173,8 @@ public class BlockListener implements Listener
}
}
else if (enchantments.containsKey(Enchantment.SILK_TOUCH) && ham && BlockRef.ValidHammerFortune.containsKey(blockMat)
|| enchantments.containsKey(Enchantment.SILK_TOUCH) && exc && BlockRef.ValidExcavatorFortune.containsKey(blockMat))
else if (enchantments.containsKey(Enchantment.SILK_TOUCH) && ham && BlockRef.ValidHammerSilkTouch.contains(blockMat)
|| enchantments.containsKey(Enchantment.SILK_TOUCH) && exc && BlockRef.ValidExcavatorSilkTouch.contains(blockMat))
{
b.getWorld().dropItemNaturally(blockLoc, new ItemStack(blockMat));
b.setType(Material.AIR);