mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +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
@@ -58,8 +58,7 @@ public class DynamicToolPart extends CraftingItem implements IToolPart {
|
||||
// item meta = material id
|
||||
@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