Skip to content

Commit

Permalink
Cleanup unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokkonaut committed Jan 9, 2019
1 parent d5b7de6 commit b9c0bf2
Showing 1 changed file with 1 addition and 12 deletions.
Expand Up @@ -105,18 +105,7 @@ public boolean containsAtLeast(ItemStack itemStack, int i) {

@Override
public HashMap<Integer, ? extends ItemStack> all(Material material) {
HashMap<Integer, ItemStack> items = new HashMap<Integer, ItemStack>();
if (material.getMaxDurability() != 0) {

for (short currentDurability = 0; currentDurability < material.getMaxDurability(); currentDurability++) {
items.put((int) currentDurability, new ItemStack(material, Integer.MAX_VALUE, currentDurability));
}

return items;
} else {
items.put(1, new ItemStack(material, Integer.MAX_VALUE));
}
return items;
return new HashMap<Integer, ItemStack>();
}

@Override
Expand Down

0 comments on commit b9c0bf2

Please sign in to comment.