From 7a0a5a5313b79bac80a17731c9ca109f5b75741a Mon Sep 17 00:00:00 2001 From: Lightling Date: Thu, 19 Sep 2019 14:59:15 -0400 Subject: [PATCH] fixed silk-touch looking up fortune blocks instead of silk touch blocks --- plugin/src/lightling/gibsoniacraft/util/BlockListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/lightling/gibsoniacraft/util/BlockListener.java b/plugin/src/lightling/gibsoniacraft/util/BlockListener.java index b5d158f..a339753 100644 --- a/plugin/src/lightling/gibsoniacraft/util/BlockListener.java +++ b/plugin/src/lightling/gibsoniacraft/util/BlockListener.java @@ -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);