From fc2dfa81d81fa480bb65f2ad5027e80faa8ad690 Mon Sep 17 00:00:00 2001 From: PurSnake Date: Mon, 19 Oct 2026 14:39:55 +0300 Subject: [PATCH] fix icons bug what --- polymod/fs/BaseFileSystem.hx | 4 ++-- polymod/fs/SysZipFileSystem.hx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/polymod/fs/BaseFileSystem.hx b/polymod/fs/BaseFileSystem.hx index 08a5dd85..d14fdb56 100644 --- a/polymod/fs/BaseFileSystem.hx +++ b/polymod/fs/BaseFileSystem.hx @@ -274,7 +274,7 @@ abstract class BaseFileSystem implements IFileSystem var iconFile = getModIconPath(modPath, origin); - if (exists(iconFile)) + if (iconFile != null && exists(iconFile)) { var iconBytes:Null = getFileBytes(iconFile); @@ -370,7 +370,7 @@ abstract class BaseFileSystem implements IFileSystem var iconFile = getModIconPath(modPath, origin); - if (exists(iconFile)) + if (iconFile != null && exists(iconFile)) { var iconBytes:Null = getFileBytes(iconFile); diff --git a/polymod/fs/SysZipFileSystem.hx b/polymod/fs/SysZipFileSystem.hx index d52a3cef..7b364650 100644 --- a/polymod/fs/SysZipFileSystem.hx +++ b/polymod/fs/SysZipFileSystem.hx @@ -306,7 +306,7 @@ class SysZipFileSystem extends SysFileSystem var iconFile = getModIconPath(modId, origin); - if (exists(iconFile)) + if (iconFile != null && exists(iconFile)) { var iconBytes:Null = getFileBytes(iconFile);