Add metadata support to block/item list config options, fixes #353
This commit is contained in:
@@ -37,7 +37,7 @@ public class FreezingWeapon extends Spell {
|
||||
|
||||
for(ItemStack stack : WizardryUtilities.getPrioritisedHotbarAndOffhand(caster)){
|
||||
|
||||
if((ImbueWeapon.isSword(stack.getItem()) || ImbueWeapon.isBow(stack.getItem()))
|
||||
if((ImbueWeapon.isSword(stack) || ImbueWeapon.isBow(stack))
|
||||
&& !EnchantmentHelper.getEnchantments(stack).containsKey(WizardryEnchantments.freezing_weapon)){
|
||||
// The enchantment level as determined by the damage multiplier. The + 0.5f is so that
|
||||
// weird float processing doesn't incorrectly round it down.
|
||||
|
||||
Reference in New Issue
Block a user