Add metadata support to block/item list config options, fixes #353

This commit is contained in:
Electroblob77
2020-02-21 17:40:08 +00:00
parent d6b64b3576
commit df8fd21c0b
11 changed files with 85 additions and 43 deletions
@@ -120,9 +120,9 @@ public interface Imbuement {
ItemStack bow = archer.getHeldItemMainhand();
if(!ImbueWeapon.isBow(bow.getItem())){
if(!ImbueWeapon.isBow(bow)){
bow = archer.getHeldItemOffhand();
if(!ImbueWeapon.isBow(bow.getItem())) return;
if(!ImbueWeapon.isBow(bow)) return;
}
// Taken directly from ItemBow, so it works exactly the same as the power enchantment.