fabric-loom icon indicating copy to clipboard operation
fabric-loom copied to clipboard

Runtime crashing with interface injection

Open emilyploszaj opened this issue 1 year ago • 2 comments

Similar issue to the past, I'm getting reports of EMI crashing mods in a dev environment when depended on compile time only in 1.0-SNAPSHOT loom with a class not found. Interface injection seems to apply based on compile dependencies and when the class cannot be resolved at runtime it crashes consistently.

emilyploszaj avatar Sep 20 '22 16:09 emilyploszaj

https://github.com/FabricMC/fabric-loom/blob/ffe5e955c5d908b8ab14f157b273e4a582d7dd0a/src/main/java/net/fabricmc/loom/configuration/ifaceinject/InterfaceInjectionProcessor.java#L184-L200

Hmm, it definitely does filter based on the jar being both in compile and runtime classpaths

Juuxel avatar Sep 20 '22 16:09 Juuxel

image

Slomaxonical-907 avatar Sep 20 '22 17:09 Slomaxonical-907