Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix translation #7

Merged
merged 2 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,17 @@
dependencies {

// Required for building and running
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.48.93:dev') // Duh
// { exclude group: "com.github.GTNewHorizons", module: "DetravScannerMod"}
api('com.github.GTNewHorizons:GTNHLib:0.3.2:dev') // Fastutil + config
api('com.github.GTNewHorizons:Navigator:1.0.6')
api(rfg.deobf('maven.modrinth:journeymap:5.2.5'))

// Pollution backends... only one, for now
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.48.93:dev')

runtimeOnlyNonPublishable('com.github.GTNewHorizons:GT5-Unofficial:5.09.48.93:dev')

// For testing
runtimeOnlyNonPublishable("com.github.GTNewHorizons:DetravScannerMod:1.8.1")
// Creative sources/sinks/pipes
runtimeOnlyNonPublishable('com.github.GTNewHorizons:StorageDrawers:1.13.6-GTNH-test')
runtimeOnlyNonPublishable('com.github.GTNewHorizons:EnderIO:2.8.17')

}
5 changes: 5 additions & 0 deletions src/main/java/klaxon/klaxon/goverlays/Backend.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
package klaxon.klaxon.goverlays;

/**
* As of right now, it's not possible to run GT5NH and HBM together, and GT6 doesn't have pollution, so there's no point
* supporting multiple backends in parallel. My hope is that if GT6 adds pollution it'll cooperate with NTM so I don't
* have to make another one...
*/
public enum Backend {
GT5U,
HBM_NTM, // shhhh
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package klaxon.klaxon.goverlays.navigator;

import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;

import com.gtnewhorizons.navigator.api.model.SupportedMods;
import com.gtnewhorizons.navigator.api.model.buttons.ButtonManager;
Expand All @@ -18,6 +19,6 @@ public ResourceLocation getIcon(SupportedMods mod, String theme) {

@Override
public String getButtonText() {
return "goverlays.button.pollution";
return StatCollector.translateToLocal("goverlays.button.pollution");
}
}