mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
quick fix : Redundant type cast
This commit is contained in:
1 parent
b34eec4dea
commit
2d13e6185e
84 files changed
+426
-434
No files matched your search
@@ -55,7 +55,7 @@ public class PatternBuilder {
|
||||
|
||||
ItemKey key = getItemKey(material);
|
||||
if (key != null) {
|
||||
MaterialSet mat = (MaterialSet) materialSets.get(key.key);
|
||||
MaterialSet mat = materialSets.get(key.key);
|
||||
ItemStack toolPart = getMatchingPattern(pattern, material, mat);
|
||||
|
||||
if (toolPart != null) {
|
||||
@@ -99,7 +99,7 @@ public class PatternBuilder {
|
||||
if (material != null) {
|
||||
ItemKey key = getItemKey(material);
|
||||
if (key != null) {
|
||||
MaterialSet set = (MaterialSet) materialSets.get(key.key);
|
||||
MaterialSet set = materialSets.get(key.key);
|
||||
return set.materialID;
|
||||
}
|
||||
}
|
||||
@@ -136,13 +136,13 @@ public class PatternBuilder {
|
||||
}
|
||||
|
||||
public ItemStack getShardFromSet(String materialset) {
|
||||
MaterialSet set = (MaterialSet) materialSets.get(materialset);
|
||||
MaterialSet set = materialSets.get(materialset);
|
||||
if (set != null && set.shard != null) return set.shard.copy();
|
||||
return null;
|
||||
}
|
||||
|
||||
public ItemStack getRodFromSet(String materialset) {
|
||||
MaterialSet set = (MaterialSet) materialSets.get(materialset);
|
||||
MaterialSet set = materialSets.get(materialset);
|
||||
if (set != null) return set.rod.copy();
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user