mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-24 03:36:36 +00:00
simplefied PCKFile.HasFile
This commit is contained in:
@@ -74,12 +74,7 @@ namespace PckStudio.Classes.FileTypes
|
||||
|
||||
public bool HasFile(string name, int type)
|
||||
{
|
||||
foreach (var file in file_entries)
|
||||
{
|
||||
if (file.name == name && file.type == type)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return GetFile(name, type) != null;
|
||||
}
|
||||
|
||||
public FileData GetFile(string name, int type)
|
||||
|
||||
Reference in New Issue
Block a user