Posted July 24, 201510 yr I have been implementing a configuration file for my mod. All but two are working properly. Both 'basalt redstone vein size' and 'basalt redstone attempts' are showing up with an incorrect default value. It's probably a silly error on behalf, but if it is, I cannot find it. The default for basalt redstone vein size is showing up as 5 (instead of 10) The default for basalt redstone attempts is also showing up as 5 (instead of 25) Here's the relevant code from the Configuration file (I think this is all of it): final String ORE_VEIN_SIZE = StoneBlind.config.CATEGORY_GENERAL + StoneBlind.config.CATEGORY_SPLITTER + "Ore Vein Sizes"; SBConfigValues.ActualValues.basaltRedstoneVeinSize = StoneBlind.config.getInt(SBConfigValues.Names.BASALT_REDSTONE_VEIN_SIZE, ORE_VEIN_SIZE, SBConfigValues.Defaults.BASALT_REDSTONE_VEIN_SIZE, 1, 100, ""); final String ORE_GEN_ATTEMPTS = StoneBlind.config.CATEGORY_GENERAL + StoneBlind.config.CATEGORY_SPLITTER + "Maximum Ore Veins Per Chunk"; SBConfigValues.ActualValues.basaltRedstoneAttempts = StoneBlind.config.getInt(SBConfigValues.Names.BASALT_REDSTONE_ATTEMPTS, ORE_GEN_ATTEMPTS, SBConfigValues.Defaults.BASALT_REDSTONE_ATTEMPTS, 1, 100, ""); And here's the relevant code from the SBConfigValues class (Once again, I think this is all of it): //Inside interior class Names public static final String BASALT_REDSTONE_VEIN_SIZE = "Basalt Redstone Vein public static final String BASALT_REDSTONE_ATTEMPTS = "Maximum Basalt Redstone Veins Per Chunk"; //Inside interior class Defaults public static final int BASALT_REDSTONE_VEIN_SIZE = 10; public static final int BASALT_REDSTONE_ATTEMPTS = 25; //Inside interior class ActualValues public static int basaltRedstoneVeinSize; public static int basaltRedstoneAttempts;
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.