Skip to content

Commit

Permalink
adjusted to changes in TLD V1.37
Browse files Browse the repository at this point in the history
  • Loading branch information
WulfMarius committed Nov 13, 2018
1 parent 9744e35 commit c81af38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions VisualStudio/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.1.5")]
[assembly: AssemblyFileVersion("2.1.5")]
[assembly: AssemblyVersion("2.1.6")]
[assembly: AssemblyFileVersion("2.1.6")]
2 changes: 1 addition & 1 deletion VisualStudio/src/BetterPlacing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ internal static bool IsStackableGearItem(GameObject gameObject)

internal static void Log(string message)
{
Debug.Log("Better-Placing] " + message);
Debug.Log("[Better-Placing] " + message);
}

internal static void PreparePlacableFurniture(GameObject gameObject)
Expand Down
6 changes: 3 additions & 3 deletions VisualStudio/src/Patches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public static void Postfix()
BetterPlacing.RemoveNpcFromPhysiclaCollisionMask();
}

public static bool Prefix(PlayerManager __instance, ref bool __result)
public static bool Prefix(PlayerManager __instance, ref Collider __result)
{
BetterPlacing.AddNpcToPhysicalCollisionMask();

Expand Down Expand Up @@ -369,13 +369,13 @@ public static bool Prefix(PlayerManager __instance, ref bool __result)

if (Physics.ComputePenetration(eachCollider, eachCollider.transform.position, eachCollider.transform.rotation, eachOtherCollider, eachOtherCollider.transform.position, eachOtherCollider.transform.rotation, out direction, out distance))
{
__result = true;
__result = eachOtherCollider;
return false;
}
}
}

__result = false;
__result = null;
return false;
}
}
Expand Down

0 comments on commit c81af38

Please sign in to comment.