Skip to content

Commit

Permalink
Fixed a NRE source
Browse files Browse the repository at this point in the history
  • Loading branch information
loco-choco committed Sep 10, 2022
1 parent eb29dee commit adffc7a
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CustomShipLib/VanishObjects/VanishVolumesPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ static bool VanishPlayerPrefix()
{
bool condition = true;
foreach (var d in OnConditionsForPlayerToWarp.GetInvocationList())
condition &= ((ConditionsForPlayerToWarp)d).Invoke();
{
if (d != null)
{
condition &= ((ConditionsForPlayerToWarp)d).Invoke();
}
}
return condition;
}
static bool ReceiveWarpedBodyPrefix(OWRigidbody warpedBody, RelativeLocationData entryData, WhiteHoleVolume __instance)
Expand Down
2 changes: 1 addition & 1 deletion CustomShipLib/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"author": "Locochoco",
"name": "Slate's Shipyard",
"uniqueName": "Locochoco.SlateShipyard",
"version": "0.1.1",
"version": "0.1.2",
"owmlVersion": "2.0.0"
}
70 changes: 70 additions & 0 deletions pictures/desenho.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit adffc7a

Please sign in to comment.