mirror of
https://github.com/4sval/FModel.git
synced 2026-03-21 17:24:26 -05:00
Fixed some errors (QuestBundles S15 now works)
This commit is contained in:
parent
e256486b98
commit
bbf7b6d9c5
|
|
@ -37,8 +37,8 @@ namespace FModel.Creator.Bundles
|
|||
|
||||
if (obj.TryGetValue("RewardsTable", out var v4) && v4 is ObjectProperty rewardsTable)
|
||||
{
|
||||
Package p = Utils.GetPropertyPakPackage(rewardsTable.Value.Resource.OuterIndex.Resource.ObjectName.String);
|
||||
if (p.HasExport() && !p.Equals(default))
|
||||
Package p = Utils.GetPropertyPakPackage(rewardsTable.Value.Resource.OuterIndex.Resource?.ObjectName.String);
|
||||
if (p != null && p.HasExport() && !p.Equals(default))
|
||||
{
|
||||
var u = p.GetExport<UDataTable>();
|
||||
if (u != null && u.TryGetValue("Default", out var i) && i is UObject r &&
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ namespace FModel.Creator.Bundles
|
|||
{
|
||||
string path = Utils.GetFullPath($"/FortniteGame/Content/Athena/.*?/{trigger}.*").Replace("FortniteGame/Content", "Game");
|
||||
Package p = Utils.GetPropertyPakPackage(path);
|
||||
if (p.HasExport() && !p.Equals(default))
|
||||
if (p!= null && p.HasExport() && !p.Equals(default))
|
||||
{
|
||||
var d = p.GetExport<UObject>();
|
||||
if (d != null)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user