Remove unused method in GuiTimeline
This commit is contained in:
@@ -11,7 +11,6 @@ import eu.crushedpixel.replaymod.online.authentication.AuthenticationHandler;
|
|||||||
import eu.crushedpixel.replaymod.recording.ConnectionEventHandler;
|
import eu.crushedpixel.replaymod.recording.ConnectionEventHandler;
|
||||||
import eu.crushedpixel.replaymod.registry.*;
|
import eu.crushedpixel.replaymod.registry.*;
|
||||||
import eu.crushedpixel.replaymod.renderer.InvisibilityRender;
|
import eu.crushedpixel.replaymod.renderer.InvisibilityRender;
|
||||||
import eu.crushedpixel.replaymod.renderer.SafeEntityRenderer;
|
|
||||||
import eu.crushedpixel.replaymod.renderer.SpectatorRenderer;
|
import eu.crushedpixel.replaymod.renderer.SpectatorRenderer;
|
||||||
import eu.crushedpixel.replaymod.replay.ReplayHandler;
|
import eu.crushedpixel.replaymod.replay.ReplayHandler;
|
||||||
import eu.crushedpixel.replaymod.replay.ReplayProcess;
|
import eu.crushedpixel.replaymod.replay.ReplayProcess;
|
||||||
@@ -125,11 +124,11 @@ public class ReplayMod {
|
|||||||
|
|
||||||
KeybindRegistry.initialize();
|
KeybindRegistry.initialize();
|
||||||
|
|
||||||
try {
|
// try {
|
||||||
mc.entityRenderer = new SafeEntityRenderer(mc, mc.entityRenderer);
|
// mc.entityRenderer = new SafeEntityRenderer(mc, mc.entityRenderer);
|
||||||
} catch(Exception e) {
|
// } catch(Exception e) {
|
||||||
e.printStackTrace();
|
// e.printStackTrace();
|
||||||
}
|
// }
|
||||||
|
|
||||||
tooltipRenderer = new TooltipRenderer();
|
tooltipRenderer = new TooltipRenderer();
|
||||||
|
|
||||||
|
|||||||
@@ -141,12 +141,6 @@ public class GuiTimeline extends Gui implements GuiElement {
|
|||||||
drawTimelineCursor(leftTime, rightTime, bodyWidth);
|
drawTimelineCursor(leftTime, rightTime, bodyWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getMarkerX(int timestamp, long leftTime, int bodyWidth, double segmentLength) {
|
|
||||||
long positionInSegment = timestamp - leftTime;
|
|
||||||
double fractionOfSegment = positionInSegment / segmentLength;
|
|
||||||
return (int) (positionX + BORDER_LEFT + fractionOfSegment * bodyWidth);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void drawTimelineCursor(long leftTime, long rightTime, int bodyWidth) {
|
protected void drawTimelineCursor(long leftTime, long rightTime, int bodyWidth) {
|
||||||
// Draw the cursor if it's on the current timeline segment
|
// Draw the cursor if it's on the current timeline segment
|
||||||
if (cursorPosition >= leftTime && cursorPosition <= rightTime) {
|
if (cursorPosition >= leftTime && cursorPosition <= rightTime) {
|
||||||
|
|||||||
Reference in New Issue
Block a user