Skip to content

Commit

Permalink
make sure mapping layers provide hashCode impl
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceWalkerRS committed Oct 1, 2023
1 parent 9120219 commit d242837
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
12 changes: 1 addition & 11 deletions src/main/java/net/ornithemc/ploceus/mcp/McpMappingsLayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,7 @@

import net.ornithemc.ploceus.mcp.io.McpReader;

public class McpMappingsLayer implements MappingLayer {

private Path intermediaryFile;
private Path srgFile;
private Path mcpFile;

public McpMappingsLayer(Path intermediaryFile, Path srgFile, Path mcpFile) {
this.intermediaryFile = intermediaryFile;
this.srgFile = srgFile;
this.mcpFile = mcpFile;
}
public record McpMappingsLayer(Path intermediaryFile, Path srgFile, Path mcpFile) implements MappingLayer {

@Override
public MappingsNamespace getSourceNamespace() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@

import net.ornithemc.ploceus.PloceusGradleExtension;

public class NestedMappingsLayer implements MappingLayer {

private final PloceusGradleExtension ploceus;

public NestedMappingsLayer(PloceusGradleExtension ploceus) {
this.ploceus = ploceus;
}
public record NestedMappingsLayer(PloceusGradleExtension ploceus) implements MappingLayer {

@Override
public MappingsNamespace getSourceNamespace() {
Expand Down

0 comments on commit d242837

Please sign in to comment.