Skip to content

Commit 24c86fc

Browse files
authored
Merge pull request #33 from tobeyStraitjacket/fix-outdoor-snaps
Bugfix: Fix Outdoor Snaps
2 parents 0c139c4 + 6d3d74e commit 24c86fc

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

SnapBuilder/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
// You can specify all the values or you can default the Build and Revision Numbers
3434
// by using the '*' as shown below:
3535
// [assembly: AssemblyVersion("1.0.*")]
36-
[assembly: AssemblyVersion("1.3.7.0")]
37-
[assembly: AssemblyFileVersion("1.3.7.0")]
36+
[assembly: AssemblyVersion("1.3.7.1")]
37+
[assembly: AssemblyFileVersion("1.3.7.1")]
3838
[assembly: NeutralResourcesLanguage("en-GB")]
3939

SnapBuilder/SnapBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public static bool TryGetSnappedHitPoint(LayerMask layerMask, out RaycastHit hit
150150
};
151151

152152
Vector3 localPoint = hitTransform.InverseTransformPoint(hit.point); // Get the hit point localised relative to the hit transform
153-
Vector3 localNormal = hitTransform.parent.InverseTransformDirection(hit.normal).normalized; // Get the hit normal localised to the hit transform
153+
Vector3 localNormal = (hitTransform.parent ?? hitTransform).InverseTransformDirection(hit.normal).normalized; // Get the hit normal localised to the hit transform
154154

155155
// Set the localised normal to absolute values for comparison
156156
localNormal.x = Mathf.Abs(localNormal.x);

SnapBuilder/mod_BELOWZERO.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"Id": "SnapBuilder",
33
"DisplayName": "SnapBuilder",
44
"Author": "Tobey Blaber",
5-
"Version": "1.3.7",
5+
"Version": "1.3.7.1",
66
"AssemblyName": "Straitjacket.Subnautica.Mods.SnapBuilder.dll",
77
"Enable": true,
88
"Game": "BelowZero",

SnapBuilder/mod_SUBNAUTICA.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"Id": "SnapBuilder",
33
"DisplayName": "SnapBuilder",
44
"Author": "Tobey Blaber",
5-
"Version": "1.3.7",
5+
"Version": "1.3.7.1",
66
"AssemblyName": "Straitjacket.Subnautica.Mods.SnapBuilder.dll",
77
"Enable": true,
88
"Game": "Subnautica",

0 commit comments

Comments
 (0)