Skip to content

Commit

Permalink
Merge pull request #4432 from ZacSharp/pr/1.19.4/build/fixClassloader…
Browse files Browse the repository at this point in the history
…Exclusion

Move `BaritoneTweaker` to its own package
  • Loading branch information
leijurv authored Jul 20, 2024
2 parents a02704e + 1947459 commit edb433e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions buildSrc/src/main/java/baritone/gradle/util/Determinizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ public static void determinize(String inputPath, String outputPath, List<File> t
ByteArrayOutputStream cancer = new ByteArrayOutputStream();
copy(jarFile.getInputStream(entry), cancer);
String manifest = new String(cancer.toByteArray());
if (!manifest.contains("baritone.launch.BaritoneTweaker")) {
if (!manifest.contains("baritone.launch.tweaker.BaritoneTweaker")) {
throw new IllegalStateException("unable to replace");
}
manifest = manifest.replace("baritone.launch.BaritoneTweaker", "org.spongepowered.asm.launch.MixinTweaker");
manifest = manifest.replace("baritone.launch.tweaker.BaritoneTweaker", "org.spongepowered.asm.launch.MixinTweaker");
jos.write(manifest.getBytes());
} else {
copy(jarFile.getInputStream(entry), jos);
Expand Down
2 changes: 1 addition & 1 deletion tweaker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ plugins {
unimined.minecraft {
runs.client = {
mainClass = "net.minecraft.launchwrapper.Launch"
args.addAll(["--tweakClass", "baritone.launch.BaritoneTweaker"])
args.addAll(["--tweakClass", "baritone.launch.tweaker.BaritoneTweaker"])
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/

package baritone.launch;
package baritone.launch.tweaker;

import io.github.impactdevelopment.simpletweaker.SimpleTweaker;
import net.minecraft.launchwrapper.Launch;
Expand Down

0 comments on commit edb433e

Please sign in to comment.