Spectator Keyframes are now colored blue, and the timespan during which an Entity is spectated is tinted
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
package eu.crushedpixel.replaymod.holders;
|
||||
|
||||
import eu.crushedpixel.replaymod.replay.ReplayHandler;
|
||||
|
||||
import java.util.Comparator;
|
||||
|
||||
public class KeyframeComparator implements Comparator<Keyframe> {
|
||||
|
||||
@Override
|
||||
public int compare(Keyframe o1, Keyframe o2) {
|
||||
if(ReplayHandler.isSelected(o1)) return 1;
|
||||
if(ReplayHandler.isSelected(o2)) return -1;
|
||||
return ((Integer) o1.getRealTimestamp()).compareTo(o2.getRealTimestamp());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user