Skip to content

Commit

Permalink
Append hash of directory path to dir classpath entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed May 26, 2024
1 parent 153c21b commit a05b054
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions windows/Sources/FabricSandbox/SandboxCommandLine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ class SandboxCommandLine {
if !source.isChild(of: dotMinecraftDir) {
try classpathDir.createDirectory()

// Hack fix for dev envs, where build/classes/java/main and build/resources/main would be handled as the same entry.
var name = source.name()
if source.parent()!.name() == "resources" {
name = "resources"
if source.isDirecotry() {
let hash = try Checksum.hex(source.path(), .md5)
name += "_" + hash.prefix(8)
}

// The classpath entry is not in the minecraft install dir, copy it to the sandbox.
Expand Down

0 comments on commit a05b054

Please sign in to comment.