quick fix : Private field may be 'final'

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent b1c2569992
commit ae363450b1
42 files changed
+81 -81

No files matched your search

@@ -345,7 +345,7 @@ public abstract class ArmorCore extends ItemArmor implements ISpecialArmor, IMod
return tags.getCompoundTag(getBaseTagName()).getInteger("Damage");
}
private DecimalFormat df = new DecimalFormat("##.#");
private final DecimalFormat df = new DecimalFormat("##.#");
@Override
@SideOnly(Side.CLIENT)
@@ -27,8 +27,8 @@ public class TankLayerScan extends LogicComponent {
protected ArrayList<int[]> validAirCoords = new ArrayList<>();
protected CoordTuple returnStone;
private static boolean debug = System.getenv("DBG_MANTLE_TankLayerScan") != null;
private static int MAX_LAYER_RECURSION_DEPTH = System.getProperty("os.arch").equals("amd64")
private static final boolean debug = System.getenv("DBG_MANTLE_TankLayerScan") != null;
private static final int MAX_LAYER_RECURSION_DEPTH = System.getProperty("os.arch").equals("amd64")
? 4000
: 2000; // Recursion causes overflows on 32-bit, so reduce if not 64-bit
@@ -480,7 +480,7 @@ public class AbilityHelper {
tags.setInteger("Energy", max - missing);
}
private static boolean equalityOverrideLoaded =
private static final boolean equalityOverrideLoaded =
Loader.isModLoaded("CoFHCore"); // Mods should be loaded far enough before this is ever initialized
public static void breakTool(ItemStack stack, NBTTagCompound tags, Entity entity) {