mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 08:28:39 +00:00
Fix broken planet updates
This commit is contained in:
parent
9dc7ce27e1
commit
c9e5295338
2 changed files with 13 additions and 2 deletions
|
@ -37,4 +37,13 @@ public static class GameResourceHelper
|
|||
return LbpFile.FromHash(resource)?.FileType is LbpFileType.Png or LbpFileType.Jpeg or LbpFileType.Painting
|
||||
or LbpFileType.Texture;
|
||||
}
|
||||
|
||||
public static bool IsValidLevel(string resource)
|
||||
{
|
||||
if (!FileHelper.IsResourceValid(resource)) return false;
|
||||
|
||||
// Technically this method could be used (and is used) to check if a planet is valid,
|
||||
// but I'm keeping the method name as is for semantic reasons.
|
||||
return LbpFile.FromHash(resource)?.FileType is LbpFileType.Level;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue