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.registry.*;
|
||||
import eu.crushedpixel.replaymod.renderer.InvisibilityRender;
|
||||
import eu.crushedpixel.replaymod.renderer.SafeEntityRenderer;
|
||||
import eu.crushedpixel.replaymod.renderer.SpectatorRenderer;
|
||||
import eu.crushedpixel.replaymod.replay.ReplayHandler;
|
||||
import eu.crushedpixel.replaymod.replay.ReplayProcess;
|
||||
@@ -125,11 +124,11 @@ public class ReplayMod {
|
||||
|
||||
KeybindRegistry.initialize();
|
||||
|
||||
try {
|
||||
mc.entityRenderer = new SafeEntityRenderer(mc, mc.entityRenderer);
|
||||
} catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// try {
|
||||
// mc.entityRenderer = new SafeEntityRenderer(mc, mc.entityRenderer);
|
||||
// } catch(Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
|
||||
tooltipRenderer = new TooltipRenderer();
|
||||
|
||||
|
||||
@@ -141,12 +141,6 @@ public class GuiTimeline extends Gui implements GuiElement {
|
||||
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) {
|
||||
// Draw the cursor if it's on the current timeline segment
|
||||
if (cursorPosition >= leftTime && cursorPosition <= rightTime) {
|
||||
|
||||
Reference in New Issue
Block a user