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 try
{ {
if (pawn == null)
{
return;
}
if (partner == null) if (partner == null)
{ {
return; return;
@ -77,10 +81,10 @@ namespace rjwfh
hole = p1pf.FirstOrDefault(); hole = p1pf.FirstOrDefault();
} }
if (p1pf.NullOrEmpty()) if (pp == null)
return; return;
if (p2pf.NullOrEmpty()) if (hole == null)
return; return;
} }
//hole "fucks" pp //hole "fucks" pp
@ -107,10 +111,10 @@ namespace rjwfh
hole = p2pf.FirstOrDefault(); hole = p2pf.FirstOrDefault();
} }
if (p1pf.NullOrEmpty()) if (pp == null)
return; return;
if (p2pf.NullOrEmpty()) if (hole == null)
return; return;
} }
else else
@ -146,10 +150,10 @@ namespace rjwfh
hole = p1pf.FirstOrDefault(); hole = p1pf.FirstOrDefault();
} }
if (p1pf.NullOrEmpty()) if (pp == null)
return; return;
if (p2pf.NullOrEmpty()) if (hole == null)
return; return;
} }
//hole "fucks" pp //hole "fucks" pp
@ -176,10 +180,10 @@ namespace rjwfh
hole = p2pf.FirstOrDefault(); hole = p2pf.FirstOrDefault();
} }
if (p1pf.NullOrEmpty()) if (pp == null)
return; return;
if (p2pf.NullOrEmpty()) if (hole == null)
return; return;
} }
else else
@ -209,7 +213,7 @@ namespace rjwfh
stage = 1; stage = 1;
if (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; return;

View file

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