Modify censorship, improve thing, also make bridging kinda more safe

This commit is contained in:
0xf8 2023-06-08 21:10:34 -04:00
parent 6e7e9e65d0
commit 511b07fec5
Signed by: 0xf8
GPG Key ID: 446580D758689584
4 changed files with 4 additions and 4 deletions

View File

@ -159,7 +159,7 @@ public class SettingsUtil {
public static String maybeCensor(int coord) {
if (BaritoneAPI.getSettings().censorCoordinates.value) {
return "<censored>";
return "####";
}
return Integer.toString(coord);

View File

@ -46,7 +46,7 @@ public class WorldData implements IWorldData {
public void onClose() {
Baritone.getExecutor().execute(() -> {
System.out.println("Started saving the world in a new thread");
System.out.println("Baritone: Started saving the world in a new thread");
cache.save();
});
}

View File

@ -100,7 +100,7 @@ public class WorldProvider implements IWorldProvider, Helper {
// lol wtf is this baritone folder in my minecraft save?
try (FileOutputStream out = new FileOutputStream(new File(readme, "readme.txt"))) {
// good thing we have a readme
out.write("https://github.com/cabaletta/baritone\n".getBytes());
out.write("This folder is used for chunk caching and waypoints\n\nhttps://git.psf.lt/0xf8/baritone\n".getBytes());
} catch (IOException ignored) {}
// We will actually store the world data in a subfolder: "DIM<id>"

View File

@ -290,7 +290,7 @@ public class MovementTraverse extends Movement {
}
double dist1 = Math.max(Math.abs(ctx.player().posX - (dest.getX() + 0.5D)), Math.abs(ctx.player().posZ - (dest.getZ() + 0.5D)));
PlaceResult p = MovementHelper.attemptToPlaceABlock(state, baritone, dest.down(), false, true);
if ((p == PlaceResult.READY_TO_PLACE || dist1 < 0.6) && !Baritone.settings().assumeSafeWalk.value) {
if ((p == PlaceResult.READY_TO_PLACE || dist1 < 0.45) && !Baritone.settings().assumeSafeWalk.value) {
state.setInput(Input.SNEAK, true);
}
switch (p) {