Skip to content

Commit

Permalink
fix(modlauncher): add custom ois classes to transformer targets
Browse files Browse the repository at this point in the history
  • Loading branch information
dogboy21 committed Aug 27, 2023
1 parent 332b69e commit 9b716f4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class SIBTransformer implements ITransformer<ClassNode> {
private final PatchModule patchModule;
Expand All @@ -36,7 +37,8 @@ public TransformerVoteResult castVote(ITransformerVotingContext context) {

@Override
public Set<Target> targets() {
return this.patchModule.getClassesToPatch().stream()
return Stream.concat(this.patchModule.getClassesToPatch().stream(),
this.patchModule.getCustomOISClasses().stream())
.map(Target::targetClass)
.collect(Collectors.toSet());
}
Expand Down

0 comments on commit 9b716f4

Please sign in to comment.