Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Dec 15, 2023
1 parent a388184 commit 235a8f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/cadixdev/at/io/fml/FmlWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ private static String getAccessModifier(AccessChange change) {
private void writeAccessTransform(String className, AccessTransform transform) throws IOException {
if (transform.getAccess() != AccessChange.NONE) {
this.writer.write(getAccessModifier(transform.getAccess()));
} else {
// FML is not compatible with bare finality changes.
// See https://github.com/CadixDev/at/issues/8.
throw new IllegalArgumentException("No access change provided for class " + className);
}

switch (transform.getFinal()) {
Expand Down

0 comments on commit 235a8f4

Please sign in to comment.