mirror of
https://github.com/GTNewHorizons/IguanaTweaksTConstruct.git
synced 2026-11-27 23:33:06 +00:00
Change item name on part replacement if it's material+tool. (e.g. "Wooden Pickaxe" -> "Flint Pickaxe")
This commit is contained in:
1 parent
32b09565a4
commit
231d6bca04
3 files changed
+11
-11
No files matched your search
@@ -143,18 +143,8 @@ public class ModPartReplacement extends ItemModifier {
|
||||
for(int i = partIndex; i > 0; i--)
|
||||
partType = detectAdditionalPartType(recipe, replacementPart, partType);
|
||||
|
||||
// actually do the exchange
|
||||
exchangeToolPart(tool, tags, partType, parts[partIndex], itemStack);
|
||||
/*
|
||||
// ok. we got the needed info. now we can do the actual exchange :)
|
||||
int matId = ToolBuilder.instance.getMaterialID(parts[partIndex]);
|
||||
switch (partType) {
|
||||
case HEAD: tags.setInteger("Head", matId); tags.setInteger("RenderHead", matId); break;
|
||||
case HANDLE: tags.setInteger("Handle", matId); tags.setInteger("RenderHandle", matId); break;
|
||||
case ACCESSORY: tags.setInteger("Accessory", matId); tags.setInteger("RenderAccessory", matId); break;
|
||||
case EXTRA: tags.setInteger("Extra", matId); tags.setInteger("RenderExtra", matId); break;
|
||||
}
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user