fixed silk-touch looking up fortune blocks instead of silk touch blocks
This commit is contained in:
parent
144f52ba96
commit
7a0a5a5313
1 changed files with 2 additions and 2 deletions
|
@ -173,8 +173,8 @@ public class BlockListener implements Listener
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (enchantments.containsKey(Enchantment.SILK_TOUCH) && ham && BlockRef.ValidHammerFortune.containsKey(blockMat)
|
else if (enchantments.containsKey(Enchantment.SILK_TOUCH) && ham && BlockRef.ValidHammerSilkTouch.contains(blockMat)
|
||||||
|| enchantments.containsKey(Enchantment.SILK_TOUCH) && exc && BlockRef.ValidExcavatorFortune.containsKey(blockMat))
|
|| enchantments.containsKey(Enchantment.SILK_TOUCH) && exc && BlockRef.ValidExcavatorSilkTouch.contains(blockMat))
|
||||||
{
|
{
|
||||||
b.getWorld().dropItemNaturally(blockLoc, new ItemStack(blockMat));
|
b.getWorld().dropItemNaturally(blockLoc, new ItemStack(blockMat));
|
||||||
b.setType(Material.AIR);
|
b.setType(Material.AIR);
|
||||||
|
|
Reference in a new issue