mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 12:17:17 -04:00
Merge branch 'master' of github.com:MightyPirates/OpenComputers into one-three
Conflicts: build.properties
This commit is contained in:
commit
a2182c7d8e
@ -104,6 +104,9 @@ class ClassTransformer extends IClassTransformer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val template = classNodeFor("li/cil/oc/common/asm/template/SimpleEnvironment")
|
val template = classNodeFor("li/cil/oc/common/asm/template/SimpleEnvironment")
|
||||||
|
if (template == null) {
|
||||||
|
throw new InjectionFailedException("Could not find SimpleComponent template!")
|
||||||
|
}
|
||||||
|
|
||||||
def inject(methodName: String, signature: String, required: Boolean = false) {
|
def inject(methodName: String, signature: String, required: Boolean = false) {
|
||||||
def filter(method: MethodNode) = method.name == methodName && method.desc == signature
|
def filter(method: MethodNode) = method.name == methodName && method.desc == signature
|
||||||
@ -198,8 +201,8 @@ class ClassTransformer extends IClassTransformer {
|
|||||||
else {
|
else {
|
||||||
val nameObfed = FMLDeobfuscatingRemapper.INSTANCE.unmap(name).replace('/', '.')
|
val nameObfed = FMLDeobfuscatingRemapper.INSTANCE.unmap(name).replace('/', '.')
|
||||||
val bytes = loader.getClassBytes(nameObfed)
|
val bytes = loader.getClassBytes(nameObfed)
|
||||||
if (bytes == null) throw new ClassNotFoundException(namePlain)
|
if (bytes == null) null
|
||||||
newClassNode(bytes)
|
else newClassNode(bytes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user