Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public abstract class AbstractBuilder {
protected @Nullable List<ITargetMod> requiredMods;
protected @Nullable List<ITargetMod> excludedMods;
protected @Nullable Phase phase;
protected @Nonnull Supplier<Boolean> applyIf = () -> true;
protected @Nullable Supplier<Boolean> applyIf;

protected AbstractBuilder addCommonClasses(@Nonnull String... classes) {
Objects.requireNonNull(classes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private static <E extends Enum<E> & IMixins> List<AbstractBuilder> getEnabledBui
MixinBuilder builder = mixin.getBuilder();
validateBuilder(builder, mixin, loadingPhase != null);
if (builder.phase != loadingPhase) continue;
if (builder.applyIf.get()) {
if (builder.applyIf == null || builder.applyIf.get()) {
list.add(builder);
} else {
builder.addAllClassesTo(toNotLoad);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private static <E extends Enum<E> & ITransformers> List<AbstractBuilder> getEnab
for (E transformer : constants) {
TransformerBuilder builder = transformer.getBuilder();
validateBuilder(builder, transformer);
if (builder.applyIf.get()) {
if (builder.applyIf == null || builder.applyIf.get()) {
list.add(builder);
} else {
builder.addAllClassesTo(toNotLoad);
Expand Down