Updated FileRating Holder class to fit updated get_ratings API call which now returns a boolean instead of numeric string
This commit is contained in:
@@ -3,13 +3,13 @@ package eu.crushedpixel.replaymod.api.replay.holders;
|
||||
public class FileRating {
|
||||
|
||||
private int file;
|
||||
private String rating;
|
||||
private boolean rating;
|
||||
|
||||
public int getFileID() {
|
||||
return file;
|
||||
}
|
||||
|
||||
public boolean getRating() {
|
||||
return rating.equals("1");
|
||||
return rating;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user