Skip to content

Commit

Permalink
Dont check level asset type on PSP (#604)
Browse files Browse the repository at this point in the history
PSP levels are not categorized as "Level" assets.
  • Loading branch information
jvyden authored Aug 1, 2024
2 parents 9d5ec0a + 3f6ec61 commit b01ce09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public Response PublishLevel(RequestContext context,
if (!dataContext.DataStore.ExistsInStore(rootResourcePath)) return NotFound;

GameAsset? asset = dataContext.Database.GetAssetFromHash(level.RootResource);
if (asset != null)
if (asset != null && dataContext.Game != TokenGame.LittleBigPlanetPSP)
{
// ReSharper disable once ConvertIfStatementToSwitchStatement
if (level.IsAdventure && asset.AssetType != GameAssetType.AdventureCreateProfile)
Expand Down

0 comments on commit b01ce09

Please sign in to comment.