Skip to content

Commit

Permalink
Implement BuiltinModResourcePackSource.equals/hashCode (#3730)
Browse files Browse the repository at this point in the history
* Implement BuiltinModResourcePackSource.equals/hashCode

* Make it a record instead
  • Loading branch information
modmuss50 committed Apr 23, 2024
1 parent ce4249d commit c5f2432
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@
import net.minecraft.text.Text;
import net.minecraft.util.Formatting;

public class BuiltinModResourcePackSource implements ResourcePackSource {
private final String modId;

public BuiltinModResourcePackSource(String modId) {
this.modId = modId;
}

public record BuiltinModResourcePackSource(String modId) implements ResourcePackSource {
@Override
public boolean canBeEnabledLater() {
return true;
Expand Down

0 comments on commit c5f2432

Please sign in to comment.