Skip to content

Commit

Permalink
Fixes inscription sorting that were broken on code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Nov 3, 2023
1 parent 5f28126 commit 1935821
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ private static int compareModel(VaultGearData leftData, VaultGearData rightData)
*/
private static int compareInstability(CompoundTag leftData, CompoundTag rightData)
{
return leftData.hasUUID("instability") && rightData.hasUUID("instability") ?
return leftData.contains("instability") && rightData.contains("instability") ?
Integer.compare(leftData.getInt("instability"), rightData.getInt("instability")) :
0;
}
Expand All @@ -689,7 +689,7 @@ private static int compareInstability(CompoundTag leftData, CompoundTag rightDat
*/
private static int compareCompletion(CompoundTag leftData, CompoundTag rightData)
{
return leftData.hasUUID("completion") && rightData.hasUUID("completion") ?
return leftData.contains("completion") && rightData.contains("completion") ?
Float.compare(leftData.getFloat("completion"), rightData.getFloat("completion")) :
0;
}
Expand All @@ -703,7 +703,7 @@ private static int compareCompletion(CompoundTag leftData, CompoundTag rightData
*/
private static int compareTime(CompoundTag leftData, CompoundTag rightData)
{
return leftData.hasUUID("time") && rightData.hasUUID("time") ?
return leftData.contains("time") && rightData.contains("time") ?
Integer.compare(leftData.getInt("time"), rightData.getInt("time")) :
0;
}
Expand Down

0 comments on commit 1935821

Please sign in to comment.