Skip to content

Commit fa7eb44

Browse files
committed
fix some more lang stuff
1 parent e8abc53 commit fa7eb44

9 files changed

Lines changed: 16 additions & 49 deletions

File tree

.editorconfig

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
root = true
33

44
[*]
5-
indent_style = tab
5+
indent_style = space
66
indent_size = 4
77
continuation_indent_size = 4
88
end_of_line = lf
@@ -13,7 +13,6 @@ max_line_length = 120
1313
quote_type = double
1414

1515
[*.json]
16-
indent_style = space
1716
indent_size = 2
1817

1918
[*.java]
@@ -22,5 +21,5 @@ ij_java_class_count_to_use_import_on_demand = 99
2221
ij_java_names_count_to_use_import_on_demand = 99
2322
ij_java_imports_layout = $*, |, java.**, |, javax.**, |, org.**, |, com.**, |, *
2423

25-
[{*.fsh,*.vsh}]
26-
indent_style = space
24+
[.github/workflows/*.yml]
25+
indent_size = 2

buildSrc/src/main/kotlin/build-extensions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ val Project.mod: ModData get() = ModData(this)
99
fun Project.prop(key: String): String? = findProperty(key)?.toString()
1010
fun String.upperCaseFirst() = replaceFirstChar { if (it.isLowerCase()) it.uppercaseChar() else it }
1111

12-
fun RepositoryHandler.strictMaven(url: String, alias: String, vararg groups: String) = exclusiveContent {
13-
forRepository { maven(url) { name = alias } }
12+
fun RepositoryHandler.strictMaven(url: String, vararg groups: String) = exclusiveContent {
13+
forRepository { maven(url) }
1414
filter { groups.forEach(::includeGroup) }
1515
}
1616

fabric/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ loom {
7979
}
8080

8181
repositories {
82-
maven("https://api.modrinth.com/maven") // LazyDFU
8382
maven("https://maven.terraformersmc.com/releases/") // Mod Menu
8483
maven("https://mvn.devos.one/snapshots/") // Create Fabric, Forge Tags, Milk Lib, Registrate Fabric
8584
maven("https://mvn.devos.one/releases/") // Porting Lib Releases

src/main/java/rbasamoyai/createbigcannons/crafting/welding/CannonWelderSelectionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public boolean onMouseInput() {
128128
if (mc.hitResult instanceof BlockHitResult bhr) {
129129
BlockState blockState = level.getBlockState(this.hoveredPos);
130130
if (!(blockState.getBlock() instanceof WeldableBlock wblock) || !wblock.isWeldable(blockState)) {
131-
CreateLang.builder (CreateBigCannons.MOD_ID).translate("cannon_welder.invalid_weld").color(FAIL).sendStatus(player);
131+
CreateLang.builder(CreateBigCannons.MOD_ID).translate("cannon_welder.invalid_weld").color(FAIL).sendStatus(player);
132132
return false;
133133
}
134134
face = bhr.getDirection();

src/main/java/rbasamoyai/createbigcannons/munitions/autocannon/ammo_container/AutocannonAmmoContainerScreen.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ protected void renderBg(GuiGraphics graphics, float partialTick, int mouseX, int
9292
protected void renderTooltip(GuiGraphics graphics, int x, int y) {
9393
super.renderTooltip(graphics, x, y);
9494
if (this.hoveredSlot != null && this.hoveredSlot.index == 1 && !this.hoveredSlot.hasItem()) {
95-
graphics.renderTooltip(this.font, CreateLang.
96-
(CreateBigCannons.MOD_ID).translate("gui.autocannon_ammo_container.tracer_slot").component(), x, y);
95+
graphics.renderTooltip(this.font, CreateLang.builder(CreateBigCannons.MOD_ID).translate("gui.autocannon_ammo_container.tracer_slot").component(), x, y);
9796
}
9897
}
9998

@@ -131,8 +130,7 @@ protected ScrollInput getScrollInput() {
131130
.withRange(1, 7)
132131
.calling(state -> {
133132
this.lastUpdated = 0;
134-
this.setValue.titled(CreateLang.
135-
(CreateBigCannons.MOD_ID).translate("gui.autocannon_ammo_container.tracer_spacing", state).component());
133+
this.setValue.titled(CreateLang.builder(CreateBigCannons.MOD_ID).translate("gui.autocannon_ammo_container.tracer_spacing", state).component());
136134
})
137135
.setState(Mth.clamp(this.menu.getValue(), 1, 6));
138136
}

src/main/java/rbasamoyai/createbigcannons/munitions/fuzes/DelayedImpactFuzeScreen.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ protected ScrollInput getScrollInput() {
2727
int time = state + 1;
2828
int seconds = time / 20;
2929
int ticks = time - seconds * 20;
30-
this.setValue.titled(CreateLang.
31-
(CreateBigCannons.MOD_ID).translate("gui.set_timed_fuze.time", seconds, ticks).component());
30+
this.setValue.titled(CreateLang.builder(CreateBigCannons.MOD_ID).translate("gui.set_timed_fuze.time", seconds, ticks).component());
3231
})
3332
.setState(Mth.clamp(this.menu.getValue() - 1, 0, 100));
3433
}

src/main/java/rbasamoyai/createbigcannons/munitions/fuzes/ProximityFuzeScreen.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ protected ScrollInput getScrollInput() {
2424
.withRange(1, 33)
2525
.calling(state -> {
2626
this.lastUpdated = 0;
27-
this.setValue.titled(CreateLang.
28-
(CreateBigCannons.MOD_ID).translate("gui.set_proximity_fuze.distance", state).component());
27+
this.setValue.titled(CreateLang.builder(CreateBigCannons.MOD_ID).translate("gui.set_proximity_fuze.distance", state).component());
2928
})
3029
.setState(Mth.clamp(this.menu.getValue(), 1, 33));
3130
}

src/main/java/rbasamoyai/createbigcannons/munitions/fuzes/TimedFuzeScreen.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ protected ScrollInput getScrollInput() {
2727
int time = Math.max(1, state * 5);
2828
int seconds = time / 20;
2929
int ticks = time - seconds * 20;
30-
this.setValue.titled(CreateLang.
31-
(CreateBigCannons.MOD_ID).translate("gui.set_timed_fuze.time", seconds, ticks).component());
30+
this.setValue.titled(CreateLang.builder(CreateBigCannons.MOD_ID).translate("gui.set_timed_fuze.time", seconds, ticks).component());
3231
})
3332
.setState(Mth.clamp(this.menu.getValue() / 5, 0, 100));
3433
}

stonecutter.gradle.kts

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ plugins {
99
}
1010
stonecutter active "1.20.1" /* [SC] DO NOT EDIT */
1111

12-
//todo: not sure if we even need this
13-
stonecutter.parameters {
14-
val loader = metadata.project.substringAfterLast("-")
15-
consts(loader, "fabric", "forge", "neoforge")
16-
}
17-
1812
stonecutter registerChiseled tasks.register("chiseledBuild", stonecutter.chiseled) {
1913
group = "project"
2014
ofTask("buildAndCollect")
@@ -60,37 +54,17 @@ subprojects {
6054
repositories {
6155
mavenCentral()
6256
// mappings
63-
maven("https://maven.parchmentmc.org")
64-
maven("https://maven.quiltmc.org/repository/release")
57+
strictMaven("https://maven.parchmentmc.org", "org.parchmentmc.data")
58+
strictMaven("https://maven.quiltmc.org/repository/release", "org.quiltmc")
6559
// our repo
66-
maven("https://maven.realrobotix.me/master/")
60+
strictMaven("https://maven.realrobotix.me/master/", "com.rbasamoyai", "com.copycatsplus")
6761

6862
//maven("https://maven.shedaniel.me/")
6963
maven("https://maven.blamejared.com/")
7064
maven("https://maven.tterrag.com/")
7165
maven("https://maven.createmod.net/")
72-
exclusiveContent {
73-
forRepository {
74-
maven {
75-
name = "Modrinth"
76-
url = uri("https://api.modrinth.com/maven")
77-
}
78-
}
79-
filter {
80-
includeGroup("maven.modrinth")
81-
}
82-
}
83-
exclusiveContent {
84-
forRepository {
85-
maven {
86-
name = "CurseMaven"
87-
url = uri("https://cursemaven.com")
88-
}
89-
}
90-
filter {
91-
includeGroup("curse.maven")
92-
}
93-
}
66+
strictMaven("https://api.modrinth.com/maven", "maven.modrinth")
67+
strictMaven("https://cursemaven.com", "curse.maven")
9468
flatDir{
9569
dir("libs")
9670
}

0 commit comments

Comments
 (0)