Skip to content

Commit e2ed495

Browse files
committed
Fix HashFunction padding on some locales, and remove debug line in SAS task.
1 parent 8dbe886 commit e2ed495

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/common/java/net/minecraftforge/gradle/common/util/HashFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public enum HashFunction {
4343

4444
private HashFunction(String algo, int length) {
4545
this.algo = algo;
46-
this.pad = String.format("%0" + length + "d", 0);
46+
this.pad = String.format(Locale.ENGLISH, "%0" + length + "d", 0);
4747
}
4848

4949
public String getExtension() {

src/patcher/java/net/minecraftforge/gradle/patcher/task/CreateFakeSASPatches.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public void apply() throws IOException {
6565
if (getOutput().exists())
6666
getOutput().mkdirs();
6767
for (File file : getFiles()) {
68-
getProject().getLogger().lifecycle("File: " + file);
6968
for (String line : FileUtils.readLines(file)) {
7069
int idx = line.indexOf('#');
7170
if (idx == 0 || line.isEmpty()) continue;

0 commit comments

Comments
 (0)