From 909ab553eb19d6a034e3080eda33235479ff7d95 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 12 Mar 2019 22:08:17 -0700 Subject: [PATCH] small cleanup --- src/main/java/baritone/utils/GuiClick.java | 11 +---------- src/main/java/baritone/utils/PathRenderer.java | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/main/java/baritone/utils/GuiClick.java b/src/main/java/baritone/utils/GuiClick.java index cd10ee17..c928d1f1 100644 --- a/src/main/java/baritone/utils/GuiClick.java +++ b/src/main/java/baritone/utils/GuiClick.java @@ -74,14 +74,11 @@ public class GuiClick extends GuiScreen { @Override protected void mouseReleased(int mouseX, int mouseY, int mouseButton) { - System.out.println("Mouse released"); if (mouseButton == 0) { if (clickStart != null && !clickStart.equals(currentMouseOver)) { ((Baritone) BaritoneAPI.getProvider().getPrimaryBaritone()).getBuilderProcess().clearArea(clickStart, currentMouseOver); clickStart = null; } else { - - BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalTwoBlocks(currentMouseOver)); } } else if (mouseButton == 1) { @@ -93,16 +90,10 @@ public class GuiClick extends GuiScreen { @Override protected void mouseClicked(int mouseX, int mouseY, int mouseButton) { - System.out.println("Mouse clicked"); clickStart = currentMouseOver; } - @Override - protected void mouseClickMove(int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick) { - System.out.println("Click move"); - } - - public void onRender(float partialTicks) { + public void onRender() { GlStateManager.getFloat(GL_MODELVIEW_MATRIX, (FloatBuffer) MODELVIEW.clear()); GlStateManager.getFloat(GL_PROJECTION_MATRIX, (FloatBuffer) PROJECTION.clear()); GlStateManager.glGetInteger(GL_VIEWPORT, (IntBuffer) VIEWPORT.clear()); diff --git a/src/main/java/baritone/utils/PathRenderer.java b/src/main/java/baritone/utils/PathRenderer.java index 7ea20122..9840e76e 100644 --- a/src/main/java/baritone/utils/PathRenderer.java +++ b/src/main/java/baritone/utils/PathRenderer.java @@ -60,7 +60,7 @@ public final class PathRenderer implements Helper { float partialTicks = event.getPartialTicks(); Goal goal = behavior.getGoal(); if (mc.currentScreen instanceof GuiClick) { - ((GuiClick) mc.currentScreen).onRender(partialTicks); + ((GuiClick) mc.currentScreen).onRender(); } int thisPlayerDimension = behavior.baritone.getPlayerContext().world().provider.getDimensionType().getId();