mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 22:44:23 +00:00
quick fix : Redundant Collection operation
This commit is contained in:
1 parent
92e46b123f
commit
e2f185ad35
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