mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 22:44:23 +00:00
quick fix : Redundant type cast
This commit is contained in:
1 parent
e2f185ad35
commit
144d336f5e
84 files changed
+426
-434
No files matched your search
@@ -71,17 +71,17 @@ public class ModButtertouch extends ModBoolean {
|
||||
if (index == enchant.effectId) {
|
||||
hasEnchant = true;
|
||||
enchantTag.setShort("id", (short) index);
|
||||
enchantTag.setShort("lvl", (short) ((byte) level));
|
||||
enchantTag.setShort("lvl", (byte) level);
|
||||
} else {
|
||||
enchantTag.setShort("id", (short) index);
|
||||
enchantTag.setShort("lvl", (short) ((byte) lvl));
|
||||
enchantTag.setShort("lvl", (byte) lvl);
|
||||
}
|
||||
tags.appendTag(enchantTag);
|
||||
}
|
||||
if (!hasEnchant) {
|
||||
NBTTagCompound enchantTag = new NBTTagCompound();
|
||||
enchantTag.setShort("id", (short) enchant.effectId);
|
||||
enchantTag.setShort("lvl", (short) ((byte) level));
|
||||
enchantTag.setShort("lvl", (byte) level);
|
||||
tags.appendTag(enchantTag);
|
||||
}
|
||||
tool.stackTagCompound.setTag("ench", tags);
|
||||
|
||||
Reference in new issue
Block a user