I can't string, and unboxing is weird

This commit is contained in:
Electroblob77
2020-02-21 17:55:45 +00:00
parent df8fd21c0b
commit 5d96f4d700
4 changed files with 5 additions and 5 deletions
@@ -40,7 +40,7 @@ public class PocketFurnace extends Spell {
if(!result.isEmpty() && !(stack.getItem() instanceof ItemTool) && !(stack.getItem() instanceof ItemSword)
&& !(stack.getItem() instanceof ItemArmor)
&& !Arrays.asList(Wizardry.settings.pocketFurnaceItemBlacklist).contains(Pair.of(stack.getItem().getRegistryName(), stack.getMetadata()))){
&& !Arrays.asList(Wizardry.settings.pocketFurnaceItemBlacklist).contains(Pair.of(stack.getItem().getRegistryName(), (short)stack.getMetadata()))){
if(stack.getCount() <= usesLeft){
ItemStack stack2 = new ItemStack(result.getItem(), stack.getCount(), result.getItemDamage());