mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 23:13:07 +00:00
1.2.16
This commit is contained in:
1 parent
b5f61b5367
commit
a2ae40c930
78 files changed
+214
-62
No files matched your search
@@ -68,12 +68,6 @@ public class ModLapisIncrease extends ToolMod
|
||||
|
||||
public void addEnchantment(ItemStack tool, Enchantment enchant, int level)
|
||||
{
|
||||
/*if (!tool.stackTagCompound.hasKey("ench"))
|
||||
{
|
||||
tool.stackTagCompound.setTag("ench", new NBTTagList("ench"));
|
||||
}*/
|
||||
|
||||
//NBTTagList tags = (NBTTagList)tool.stackTagCompound.getTag("ench");
|
||||
NBTTagList tags = new NBTTagList("ench");
|
||||
Map enchantMap = EnchantmentHelper.getEnchantments(tool);
|
||||
Iterator iterator = enchantMap.keySet().iterator();
|
||||
@@ -106,17 +100,7 @@ public class ModLapisIncrease extends ToolMod
|
||||
enchantTag.setShort("lvl", (short)((byte)level));
|
||||
tags.appendTag(enchantTag);
|
||||
}
|
||||
//this.stackTagCompound.setTag("ench", new NBTTagList("ench"));
|
||||
tool.stackTagCompound.setTag("ench", tags);
|
||||
/*if (enchantMap.containsKey(enchant.effectId))
|
||||
{
|
||||
map.
|
||||
}*/
|
||||
//NBTTagList enchantTags = (NBTTagList)tool.stackTagCompound.getTag("ench");
|
||||
/*NBTTagCompound var4 = new NBTTagCompound();
|
||||
var4.setShort("id", (short)par1Enchantment.effectId);
|
||||
var4.setShort("lvl", (short)((byte)par2));
|
||||
enchantTags.appendTag(var4);*/
|
||||
}
|
||||
|
||||
void updateModTag (ItemStack tool, int[] keys)
|
||||
|
||||
Reference in new issue
Block a user