More code duplication removal.

This commit is contained in:
GJ
2013-06-12 15:56:42 -04:00
parent db637f0bc9
commit 3a78e1b487
4 changed files with 44 additions and 40 deletions

View File

@@ -461,6 +461,10 @@ public class ItemUtils {
}
public static boolean isSmeltable(ItemStack item) {
if (item == null) {
return false;
}
switch (item.getType()) {
case COAL_ORE:
case DIAMOND_ORE:
@@ -479,6 +483,10 @@ public class ItemUtils {
}
public static boolean isSmelted(ItemStack item) {
if (item == null) {
return false;
}
switch (item.getType()) {
case COAL:
case DIAMOND: