Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.