diff --git a/VisualStudio/Properties/AssemblyInfo.cs b/VisualStudio/Properties/AssemblyInfo.cs index d59d152..3f31bcb 100644 --- a/VisualStudio/Properties/AssemblyInfo.cs +++ b/VisualStudio/Properties/AssemblyInfo.cs @@ -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")] diff --git a/VisualStudio/src/BetterPlacing.cs b/VisualStudio/src/BetterPlacing.cs index 7e03207..fab14a9 100644 --- a/VisualStudio/src/BetterPlacing.cs +++ b/VisualStudio/src/BetterPlacing.cs @@ -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) diff --git a/VisualStudio/src/Patches.cs b/VisualStudio/src/Patches.cs index 0b4f12b..426f0c6 100644 --- a/VisualStudio/src/Patches.cs +++ b/VisualStudio/src/Patches.cs @@ -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(); @@ -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; } }