mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-09-23 10:42:43 +00:00
Fix .txt files being imported in batch file drops
This commit is contained in:
@@ -1337,6 +1337,16 @@ namespace PckStudio.Controls
|
||||
bool askForAssetType = true;
|
||||
foreach (var filepath in files)
|
||||
{
|
||||
if (filepath.EndsWith(".txt") && fileCount > 1)
|
||||
{
|
||||
string originalFile = Path.Combine(
|
||||
Path.GetDirectoryName(filepath)!,
|
||||
Path.GetFileNameWithoutExtension(filepath));
|
||||
|
||||
if (File.Exists(originalFile))
|
||||
continue;
|
||||
}
|
||||
|
||||
string assetPath = Path.Combine(prefix + filepath.Substring(baseDirectory.Length)).TrimStart('/', '\\');
|
||||
PckAssetType assetType = lastSelectedAssetType;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user