Skip to content

Commit

Permalink
Version bumps & mute StringInterner by default
Browse files Browse the repository at this point in the history
It's known to transform the entirety of the JVM, no need to log it
  • Loading branch information
Ampflower committed Dec 23, 2023
1 parent 0439dec commit 7066dad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies {
mappings("net.fabricmc", "yarn", yarnMappings, classifier = "v2")
modImplementation("net.fabricmc", "fabric-loader", loaderVersion)
// I'm sorry...
include(modImplementation("com.github.Modflower", "bytecode-junkie", "v0.3.1"))
include(modImplementation("com.github.Modflower", "bytecode-junkie", "v0.3.3"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
projectVersion=0.0.0
projectVersion=0.0.1
minecraftVersion=1.19.2
yarnMappings=1.19.2+build.28
loaderVersion=0.14.11
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/gay/ampflower/mcunsafe/asm/StringInterner.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @since ${version}
**/
class StringInterner implements Transformer {
private static final boolean log = Boolean.getBoolean("mcunsafe.log.stringinterner");

private static final Identifier identifier = new Identifier("mcunsafe", "string-interner");

@Override
Expand Down Expand Up @@ -40,7 +42,7 @@ public boolean transform(ClassNode classNode, Flags flags) {
method.instructions.insertBefore(insn, il);
transformed = f = true;
}
if (f)
if (f && log)
System.out.printf("MCU-SI: Successfully transformed %s/%s%s\n", classNode.name, method.name, method.desc);
}
if (transformed) {
Expand Down

0 comments on commit 7066dad

Please sign in to comment.