fix more error

This commit is contained in:
Ed86 2022-09-09 15:24:07 +03:00
parent 3243e79edc
commit 88ddfd6498
3 changed files with 14 additions and 10 deletions

Binary file not shown.

View file

@ -32,6 +32,10 @@ namespace rjwfh
{
try
{
if (pawn == null)
{
return;
}
if (partner == null)
{
return;
@ -77,10 +81,10 @@ namespace rjwfh
hole = p1pf.FirstOrDefault();
}
if (p1pf.NullOrEmpty())
if (pp == null)
return;
if (p2pf.NullOrEmpty())
if (hole == null)
return;
}
//hole "fucks" pp
@ -107,10 +111,10 @@ namespace rjwfh
hole = p2pf.FirstOrDefault();
}
if (p1pf.NullOrEmpty())
if (pp == null)
return;
if (p2pf.NullOrEmpty())
if (hole == null)
return;
}
else
@ -146,10 +150,10 @@ namespace rjwfh
hole = p1pf.FirstOrDefault();
}
if (p1pf.NullOrEmpty())
if (pp == null)
return;
if (p2pf.NullOrEmpty())
if (hole == null)
return;
}
//hole "fucks" pp
@ -176,10 +180,10 @@ namespace rjwfh
hole = p2pf.FirstOrDefault();
}
if (p1pf.NullOrEmpty())
if (pp == null)
return;
if (p2pf.NullOrEmpty())
if (hole == null)
return;
}
else
@ -209,7 +213,7 @@ namespace rjwfh
stage = 1;
if (stage != -1)
p1.needs.mood.thoughts.memories.TryGainMemory(ThoughtMaker.MakeThought(T, stage), null);
p1?.needs?.mood?.thoughts?.memories?.TryGainMemory(ThoughtMaker.MakeThought(T, stage), null);
}
return;

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>RimJobWorld FH</identifier>
<version>1.1.0</version>
<version>1.2.0</version>
<dependencies>
<li>RimJobWorld</li>
</dependencies>