Skip to content

Commit

Permalink
Remove minimize for now
Browse files Browse the repository at this point in the history
  • Loading branch information
xdnw committed Sep 5, 2024
1 parent 17d3729 commit 11e62f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ dependencies {

implementation 'org.apache.logging.log4j:log4j-core:2.23.1'
implementation 'org.apache.logging.log4j:log4j-api:2.13.3'

implementation 'commons-logging:commons-logging:1.3.4'

implementation 'com.pusher:pusher-java-client:2.4.4'

Expand Down Expand Up @@ -472,7 +472,7 @@ jar {
}

shadowJar {
minimize()
// minimize()
zip64=true
archiveBaseName = "${name}-${project.name}"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ public synchronized TradeManager load() {
if (Settings.INSTANCE.TASKS.COMPLETED_TRADES_SECONDS > 0) {
updateTradeList(null);
} else {
if (low == null) low = new int[ResourceType.values.length];
if (high == null) high = new int[ResourceType.values.length];
lowAvg = new double[ResourceType.values.length];
highAvg = new double[ResourceType.values.length];

Map<ResourceType, Integer> initDefaults = new EnumMap<>(ResourceType.class);
initDefaults.put(ResourceType.MONEY, 1);
initDefaults.put(ResourceType.CREDITS, 25_000_000);
Expand All @@ -235,6 +240,8 @@ public synchronized TradeManager load() {
int def = initDefaults.getOrDefault(type, 3000);
low[type.ordinal()] = def;
high[type.ordinal()] = def;
lowAvg[type.ordinal()] = def;
highAvg[type.ordinal()] = def;
}
}
} else {
Expand All @@ -246,7 +253,7 @@ public synchronized TradeManager load() {
lowAvg[ResourceType.CREDITS.ordinal()] = 25_000_000;
highAvg[0] = 1;
highAvg[ResourceType.CREDITS.ordinal()] = 25_000_000;

loadActiveTrades();
return this;
}
Expand Down

0 comments on commit 11e62f3

Please sign in to comment.