Ingest config stuff
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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!
|
||||||
|
|||||||
Reference in New Issue
Block a user