Skip to content

Commit 037729c

Browse files
author
Abstruse Paradox
committed
Re-added alternate stronghold positions setting.
1 parent 104783c commit 037729c

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

src/main/java/io/github/opencubicchunks/cubicchunks/cubicgen/customcubic/gui/BasicSettingsTab.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class BasicSettingsTab {
5454
private final UICheckBox oceanMonuments;
5555
private final UICheckBox woodlandMansions;
5656
private final UICheckBox dungeons;
57+
private final UICheckBox alternateStrongholdsPositions;
5758
private final UISelect<BiomeOption> biome;
5859

5960
private final UISlider<Integer> dungeonCount;
@@ -90,15 +91,19 @@ class BasicSettingsTab {
9091
.add(this.woodlandMansions = makeCheckbox(gui, malisisText("woodlandMansions"), conf.getBool("woodlandMansions")),
9192
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 1, 3, WIDTH_2_COL))
9293

94+
.add(this.alternateStrongholdsPositions = makeCheckbox(gui, malisisText("alternate_strongholds"), conf.getBool(
95+
"alternateStrongholdsPositions")),
96+
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 0, 4, WIDTH_2_COL))
97+
9398
.add(this.biome = makeBiomeList(gui, conf.getInt("biome")),
94-
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 0, 5, WIDTH_2_COL))
99+
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 0, 6, WIDTH_2_COL))
95100
.add(this.dungeonCount = makeIntSlider(gui, malisisText("dungeonCount", ": %d"), 1, 100, conf.getInt("dungeonCount")),
96-
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 1, 5, WIDTH_2_COL))
101+
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 1, 6, WIDTH_2_COL))
97102

98103
.add(this.biomeSize = makeIntSlider(gui, malisisText("biomeSize", ": %d"), 1, 8, conf.getInt("biomeSize")),
99-
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 0, 6, WIDTH_2_COL))
104+
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 0, 7, WIDTH_2_COL))
100105
.add(this.riverSize = makeIntSlider(gui, malisisText("riverSize", ": %d"), 1, 5, conf.getInt("riverSize")),
101-
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 1, 6, WIDTH_2_COL));
106+
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 1, 7, WIDTH_2_COL));
102107

103108
this.container = layout;
104109
}
@@ -109,6 +114,7 @@ UIVerticalTableLayout getContainer() {
109114

110115
void writeConfig(JsonObjectView conf) {
111116
conf.put("strongholds", strongholds.isChecked());
117+
conf.put("alternateStrongholdsPositions", alternateStrongholdsPositions.isChecked());
112118
conf.put("villages", villages.isChecked());
113119
conf.put("mineshafts", mineshafts.isChecked());
114120
conf.put("temples", temples.isChecked());

src/main/resources/assets/cubicgen/lang/en_gb.lang

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ cubicgen.gui.cubicgen.dungeons=Dungeons
5959
cubicgen.gui.cubicgen.dungeonCount=Dungeon count
6060

6161
cubicgen.gui.cubicgen.strongholds=Strongholds
62+
cubicgen.gui.cubicgen.alternate_strongholds=Alternate stronghold positions
6263

6364
cubicgen.gui.cubicgen.villages=Villages*
6465

src/main/resources/assets/cubicgen/lang/en_us.lang

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ cubicgen.gui.cubicgen.dungeons=Dungeons
5959
cubicgen.gui.cubicgen.dungeonCount=Dungeon Count
6060

6161
cubicgen.gui.cubicgen.strongholds=Strongholds
62+
cubicgen.gui.cubicgen.alternate_strongholds=Alternate Stronghold Positions
6263

6364
cubicgen.gui.cubicgen.villages=Villages*
6465

0 commit comments

Comments
 (0)