quick fix : Redundant type cast

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent b34eec4dea
commit 2d13e6185e
84 files changed
+426 -434

No files matched your search

@@ -28,7 +28,7 @@ public class AModLeadBoots extends AModBoolean {
if (baseTag.hasKey("AttributeModifiers")) {
attributes = baseTag.getTagList("AttributeModifiers", 0);
for (int iter = 0; iter < attributes.tagCount(); iter++) {
NBTTagCompound tag = (NBTTagCompound) attributes.getCompoundTagAt(iter);
NBTTagCompound tag = attributes.getCompoundTagAt(iter);
if (tag.getString("AttributeName").equals("generic.knockbackResistance")) attributes.removeTag(iter);
}
} else {