Skip to content

Commit

Permalink
Remove debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
starfi5h committed Jul 9, 2023
1 parent a4eb50d commit 0c4d446
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion NebulaPatcher/Patches/Dynamic/FactoryAudio_Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public static bool OnEntityBuild_Prefix(FactoryAudio __instance, int objId)
if (Multiplayer.IsActive && Multiplayer.Session.Factories.IsIncomingRequest.Value && objId > 0)
{
Vector3 pos = __instance.planet.factory.entityPool[objId].pos;
NebulaModel.Logger.Log.Debug((pos - GameMain.mainPlayer.position).sqrMagnitude + " " + (__instance.planet.radius * __instance.planet.radius / 4));
if ((pos - GameMain.mainPlayer.position).sqrMagnitude > (__instance.planet.radius * __instance.planet.radius / 4))
{
// Don't make sounds if distance is over half of the planet radius
Expand Down

0 comments on commit 0c4d446

Please sign in to comment.