Some minor bug fixes for iface injection & refmaps in mixins for quilt. (#81)

This commit is contained in:
NinjaPhenix
2022-04-24 13:41:45 +01:00
committed by GitHub
parent 06b75b3439
commit 2df553a4cb
2 changed files with 3 additions and 2 deletions

View File

@@ -230,7 +230,7 @@ public class InterfaceInjectionProcessor implements JarProcessor, GenerateSource
try {
quiltModJson = sourceSet.getResources()
.matching(patternFilterable -> patternFilterable.include("quilt.mods.json"))
.matching(patternFilterable -> patternFilterable.include("quilt.mod.json"))
.getSingleFile();
final String jsonString;

View File

@@ -252,7 +252,8 @@ public abstract class RemapJarTask extends AbstractRemapJarTask {
if (allMixinConfigs == null && getReadMixinConfigsFromManifest().get()) {
allMixinConfigs = readMixinConfigsFromManifest();
} else {
}
if (allMixinConfigs == null) {
if (extension.getPlatform().get() == ModPlatform.QUILT) {
getProject().getLogger().warn("Could not find quilt.mod.json file in: " + getInputFile().getAsFile().get().getName());
return;