Ingest config stuff

This commit is contained in:
MCRcortex
2025-11-20 17:27:36 +10:00
parent 4d8de7eb3d
commit 9d8ade88f3
2 changed files with 2 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ public class VoxyClientInstance extends VoxyInstance {
@Override @Override
public boolean isIngestEnabled(WorldIdentifier worldId) { public boolean isIngestEnabled(WorldIdentifier worldId) {
return !this.noIngestOverride; return (!this.noIngestOverride) && VoxyConfig.CONFIG.ingestEnabled;
} }
private static class Config { private static class Config {

View File

@@ -112,7 +112,7 @@ public class MixinRenderSectionManager {
} }
int x = instance.getChunkX(), y = instance.getChunkY(), z = instance.getChunkZ(); int x = instance.getChunkX(), y = instance.getChunkY(), z = instance.getChunkZ();
if (wasBuilt) { if (wasBuilt && VoxyConfig.CONFIG.ingestEnabled) {
var tracker = ((AccessorChunkTracker)ChunkTrackerHolder.get(this.level)).getChunkStatus(); var tracker = ((AccessorChunkTracker)ChunkTrackerHolder.get(this.level)).getChunkStatus();
//in theory the cache value could be wrong but is so soso unlikely and at worst means we either duplicate ingest a chunk //in theory the cache value could be wrong but is so soso unlikely and at worst means we either duplicate ingest a chunk
// which... could be bad ;-; or we dont ingest atall which is ok! // which... could be bad ;-; or we dont ingest atall which is ok!