Skip to content

Commit

Permalink
Optimization & cleanup (#54)
Browse files Browse the repository at this point in the history
* optimize caching & reduce allocations

* faster matching of chunk -> VeinType

* localized name works fine so kill the weird translation system, also fixes bartworks ores showing that they contain random gt materials

* remove old lang files too
  • Loading branch information
Lyfts authored Sep 15, 2024
1 parent e343eb2 commit e927d4c
Show file tree
Hide file tree
Showing 34 changed files with 690 additions and 799 deletions.
6 changes: 3 additions & 3 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
dependencies {
shadowImplementation('com.github.GTNewHorizons:Enklume:2.1.0:dev')

api('com.github.GTNewHorizons:Navigator:1.0.12:dev')
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.49.76:dev')
api('com.github.GTNewHorizons:GTNHLib:0.5.11:dev')
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.49.103:dev')

runtimeOnlyNonPublishable(rfg.deobf('maven.modrinth:journeymap:5.2.5'))
runtimeOnlyNonPublishable(rfg.deobf('maven.modrinth:journeymap:5.2.6'))
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ apiPackage =
# Specify the configuration file for Forge's access transformers here. It must be placed into /src/main/resources/META-INF/
# There can be multiple files in a space-separated list.
# Example value: mymodid_at.cfg nei_at.cfg
accessTransformersFile =
accessTransformersFile =visualprospecting_at.cfg

# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
usesMixins = true
Expand Down
9 changes: 0 additions & 9 deletions src/main/java/com/sinthoras/visualprospecting/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ private static class Defaults {
public static final int maxTransferCacheSizeMB = 50;
public static final boolean enableVoxelMapWaypointsByDefault = false;
public static final int maxDimensionSizeMBForFastScanning = 10000;
public static boolean enableDeveloperOverlays = false;
}

private static class Categories {
Expand All @@ -41,7 +40,6 @@ private static class Categories {
public static int maxTransferCacheSizeMB = Defaults.maxTransferCacheSizeMB;
public static boolean enableVoxelMapWaypointsByDefault = Defaults.enableVoxelMapWaypointsByDefault;
public static int maxDimensionSizeMBForFastScanning = Defaults.maxDimensionSizeMBForFastScanning;
public static boolean enableDeveloperOverlays = Defaults.enableDeveloperOverlays;

public static void syncronizeConfiguration(File configFile) {
Configuration configuration = new Configuration(configFile);
Expand Down Expand Up @@ -127,13 +125,6 @@ public static void syncronizeConfiguration(File configFile) {
+ "memory issues during the initial world scan (OutOfMemoryException).");
maxDimensionSizeMBForFastScanning = maxDimensionSizeMBForFastScanningProperty.getInt();

Property enableDeveloperOverlaysProperty = configuration.get(
Categories.general,
"enableDeveloperOverlays",
Defaults.enableDeveloperOverlays,
"[CLIENT] Enable mod developer overlays, not useful for gameplay");
enableDeveloperOverlays = enableDeveloperOverlaysProperty.getBoolean();

if (configuration.hasChanged()) {
configuration.save();
}
Expand Down
158 changes: 0 additions & 158 deletions src/main/java/com/sinthoras/visualprospecting/ServerTranslations.java

This file was deleted.

Loading

0 comments on commit e927d4c

Please sign in to comment.