Fix updater after adding new field
All checks were successful
/ deploy (push) Successful in 2m25s

This commit is contained in:
Minecon724 2024-12-02 19:38:08 +01:00
parent 42268eae94
commit e55bd1c676
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -6,10 +6,24 @@
package eu.m724.tweaks.updater.cache; package eu.m724.tweaks.updater.cache;
import java.util.Objects;
public record ResourceVersion( public record ResourceVersion(
int resourceId, int resourceId,
int page, int page,
int updateId, int updateId,
String label, String label,
UpdateDescription description UpdateDescription description
) { } ) {
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof ResourceVersion that)) return false;
return updateId == that.updateId && resourceId == that.resourceId;
}
@Override
public int hashCode() {
return Objects.hash(resourceId, updateId);
}
}