From 539b8ef973537e633eb954a0008a370582f24721 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sat, 25 Jan 2020 22:34:55 -0800 Subject: [PATCH] fix oversight in coordinate censorship --- src/main/java/baritone/cache/CachedWorld.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/cache/CachedWorld.java b/src/main/java/baritone/cache/CachedWorld.java index e74053901..23d7ca8c8 100644 --- a/src/main/java/baritone/cache/CachedWorld.java +++ b/src/main/java/baritone/cache/CachedWorld.java @@ -184,7 +184,9 @@ public final class CachedWorld implements ICachedWorld, Helper { int distZ = ((region.getZ() << 9) + 256) - pruneCenter.getZ(); double dist = Math.sqrt(distX * distX + distZ * distZ); if (dist > 1024) { - logDebug("Deleting cached region " + region.getX() + "," + region.getZ() + " from ram"); + if (!Baritone.settings().censorCoordinates.value) { + logDebug("Deleting cached region " + region.getX() + "," + region.getZ() + " from ram"); + } cachedRegions.remove(getRegionID(region.getX(), region.getZ())); } }