Formated Code
This commit is contained in:
parent
8262909063
commit
0055a059f7
@ -20,7 +20,6 @@ package baritone.utils;
|
|||||||
import baritone.Baritone;
|
import baritone.Baritone;
|
||||||
import baritone.api.BaritoneAPI;
|
import baritone.api.BaritoneAPI;
|
||||||
import baritone.api.pathing.goals.GoalBlock;
|
import baritone.api.pathing.goals.GoalBlock;
|
||||||
import baritone.api.pathing.goals.GoalTwoBlocks;
|
|
||||||
import baritone.api.utils.BetterBlockPos;
|
import baritone.api.utils.BetterBlockPos;
|
||||||
import baritone.api.utils.Helper;
|
import baritone.api.utils.Helper;
|
||||||
import net.minecraft.client.gui.GuiScreen;
|
import net.minecraft.client.gui.GuiScreen;
|
||||||
@ -43,8 +42,8 @@ import java.nio.FloatBuffer;
|
|||||||
import java.nio.IntBuffer;
|
import java.nio.IntBuffer;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
|
||||||
import static org.lwjgl.opengl.GL11.*;
|
|
||||||
import static baritone.api.command.IBaritoneChatControl.FORCE_COMMAND_PREFIX;
|
import static baritone.api.command.IBaritoneChatControl.FORCE_COMMAND_PREFIX;
|
||||||
|
import static org.lwjgl.opengl.GL11.*;
|
||||||
|
|
||||||
public class GuiClick extends GuiScreen {
|
public class GuiClick extends GuiScreen {
|
||||||
|
|
||||||
@ -93,13 +92,13 @@ public class GuiClick extends GuiScreen {
|
|||||||
Helper.HELPER.logDirect(component);
|
Helper.HELPER.logDirect(component);
|
||||||
clickStart = null;
|
clickStart = null;
|
||||||
} else {
|
} else {
|
||||||
if(currentMouseOver != null)//Catch this, or else a click into void will result in a crash
|
if (currentMouseOver != null)//Catch this, or else a click into void will result in a crash
|
||||||
BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalBlock(currentMouseOver));
|
BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalBlock(currentMouseOver));
|
||||||
else
|
else
|
||||||
Helper.HELPER.logDirect("Sorry, I can't go to nothing");
|
Helper.HELPER.logDirect("Sorry, I can't go to nothing");
|
||||||
}
|
}
|
||||||
} else if (mouseButton == 1) {
|
} else if (mouseButton == 1) {
|
||||||
if(currentMouseOver != null)
|
if (currentMouseOver != null)
|
||||||
BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalBlock(currentMouseOver.up()));
|
BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalBlock(currentMouseOver.up()));
|
||||||
else
|
else
|
||||||
Helper.HELPER.logDirect("Sorry, I can't go to nothing");
|
Helper.HELPER.logDirect("Sorry, I can't go to nothing");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user