Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
Back to official fabric asm, now using class replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Feb 13, 2020
1 parent 70c0be2 commit ce51bcd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ dependencies {

modCompile "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

modCompile "com.github.modmuss50:Fabric-ASM:${project.fabric_asm_version}"
include "com.github.modmuss50:Fabric-ASM:${project.fabric_asm_version}"
modCompile "com.github.Chocohead:Fabric-ASM:${project.fabric_asm_version}"
include "com.github.Chocohead:Fabric-ASM:${project.fabric_asm_version}"

//Used to handle the zip processing
compile "org.zeroturnaround:zt-zip:${project.zt_zip_version}"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ yarn_mappings=1.15.2+build.14
loader_version=0.7.8+build.184

fabric_version=0.4.32+build.292-1.15
fabric_asm_version=b97939c03a
fabric_asm_version=v2.0
zt_zip_version=1.14
slf4j_version=1.7.30

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ public OptifineInjector(ClassCache classCache) {
this.classCache = classCache;
}

public void setup() throws IOException {

classCache.getClasses().forEach(s -> ClassTinkerers.addTransformation(s.replaceAll("/", ".").substring(0, s.length() - 6), transformer));
public void setup() {
classCache.getClasses().forEach(s -> ClassTinkerers.addReplacement(s.replaceAll("/", ".").substring(0, s.length() - 6), transformer));
}

//I have no idea why and how this works, if you know better please let me know
Expand Down

0 comments on commit ce51bcd

Please sign in to comment.