Skip to content

Commit 2a85f86

Browse files
committed
Ignore transform exclusions when bytes are null.
1 parent 96f6ef9 commit 2a85f86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loader/src/main/java/com/fox2code/foxloader/launcher/FoxClassLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private Class<?> findClassImpl(String name, URL resource) throws ClassNotFoundEx
207207
bytes = mixinInfoPatch.apply(bytes);
208208
}
209209
// We need to apply some patches to mixins to make them actually work.
210-
if (wrappedExtensions != null && !isTransformExclude(tmpName)) {
210+
if (wrappedExtensions != null && (bytes == null || !isTransformExclude(tmpName))) {
211211
try {
212212
bytes = wrappedExtensions.transformClass(fileInfo, tmpName, bytes);
213213
} catch (Exception e) {

0 commit comments

Comments
 (0)