Modify censorship, improve thing, also make bridging kinda more safe
This commit is contained in:
parent
6e7e9e65d0
commit
511b07fec5
@ -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);
|
||||
|
2
src/main/java/baritone/cache/WorldData.java
vendored
2
src/main/java/baritone/cache/WorldData.java
vendored
@ -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();
|
||||
});
|
||||
}
|
||||
|
@ -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>"
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user