mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 15:43:13 +09:00
fix(minimap): improve error handling and performance in tile parsing
- Add warning logging in renderChunkToPixels catch block before fallback - Switch maxTick filtering from skip/continue to early break (append-only optimization) - Use existsSync for directory existence check in loadExistingTagContent
This commit is contained in:
1 parent
9375c462af
commit
550ea22724
2 files changed
+8
-13
No files matched your search
@@ -819,7 +819,8 @@ export class ControllerPlugin extends BaseControllerPlugin {
|
||||
|
||||
async loadExistingTagContent() {
|
||||
try {
|
||||
if (!await fs.pathExists(this.chartTagsPath)) {
|
||||
// Use existsSync for synchronous directory existence check
|
||||
if (!fs.existsSync(this.chartTagsPath)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user