Skip to content

Commit aa186dd

Browse files
Refactor DownloaderMixin to only call original.call once
Should be fine either way, but just in case.
1 parent cdc0db1 commit aa186dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/net/wurstclient/mixin/DownloaderMixin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ private Path wrapResolve(Path instance, String filename,
6262
if(uuid == null)
6363
uuid = Uuids.getOfflinePlayerUuid(session.getUsername());
6464

65-
return original.call(instance.resolve(uuid.toString()), filename);
65+
return result.getParent().resolve(uuid.toString())
66+
.resolve(result.getFileName());
6667
}
6768
}

0 commit comments

Comments
 (0)