just for debugging purposes 😉
This commit is contained in:
parent
2e2f4aee1b
commit
aa0f664cda
@ -33,9 +33,11 @@ import baritone.api.process.IGetToBlockProcess;
|
|||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.multiplayer.ChunkProviderClient;
|
import net.minecraft.client.multiplayer.ChunkProviderClient;
|
||||||
|
import net.minecraft.crash.CrashReport;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.ReportedException;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.chunk.Chunk;
|
import net.minecraft.world.chunk.Chunk;
|
||||||
|
|
||||||
@ -195,6 +197,17 @@ public class ExampleBaritoneControl implements Helper, AbstractGameEventListener
|
|||||||
logDirect("Goal: " + goal);
|
logDirect("Goal: " + goal);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (msg.equals("crash")) {
|
||||||
|
StringBuilder meme = new StringBuilder();
|
||||||
|
CrashReport rep = (new CrashReport("Manually triggered debug crash", new Throwable()));
|
||||||
|
mc.addGraphicsAndWorldToCrashReport(rep);
|
||||||
|
new ReportedException(rep).printStackTrace();
|
||||||
|
rep.getSectionsInStringBuilder(meme);
|
||||||
|
System.out.println(meme);
|
||||||
|
logDirect(meme.toString());
|
||||||
|
logDirect("ok");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (msg.equals("path")) {
|
if (msg.equals("path")) {
|
||||||
if (pathingBehavior.getGoal() == null) {
|
if (pathingBehavior.getGoal() == null) {
|
||||||
logDirect("No goal.");
|
logDirect("No goal.");
|
||||||
|
Loading…
Reference in New Issue
Block a user