mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 15:33:03 +00:00
quick fix : Redundant Collection operation
This commit is contained in:
1 parent
14f970318b
commit
b34eec4dea
4 files changed
+6
-11
No files matched your search
@@ -126,8 +126,7 @@ public class ToolPart extends CraftingItem implements IToolPart {
|
||||
|
||||
@Override
|
||||
public int getMaterialID(ItemStack stack) {
|
||||
if (TConstructRegistry.toolMaterials.keySet().contains(stack.getItemDamage())) return stack.getItemDamage();
|
||||
|
||||
if (TConstructRegistry.toolMaterials.containsKey(stack.getItemDamage())) return stack.getItemDamage();
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user