just for debugging purposes 😉

This commit is contained in:
Leijurv 2019-05-27 21:20:00 -07:00
parent 2e2f4aee1b
commit aa0f664cda
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -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.");