Skip to content

Commit

Permalink
Fix button i18n
Browse files Browse the repository at this point in the history
Also make sure GT is no longer hard depped
  • Loading branch information
ah-OOG-ah committed Jul 20, 2024
1 parent 1756ce8 commit bdb485e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
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
Expand Up @@ -6,6 +6,7 @@
import com.gtnewhorizons.navigator.api.model.buttons.ButtonManager;

import klaxon.klaxon.goverlays.GregtorioOverlays;
import net.minecraft.util.StatCollector;

public class PollutionButtonManager extends 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");
}
}

0 comments on commit bdb485e

Please sign in to comment.