Skip to content

Commit

Permalink
fixed console spam
Browse files Browse the repository at this point in the history
I forgot to remove spam prints to the console.
  • Loading branch information
j0912345 authored Oct 19, 2024
1 parent 8d75275 commit f72bc04
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public Tuple<List<hitboxLineGroup>, List<hitboxLineGroup>> calculateHitBoxShapeC

if (currBox == null)
{
Logger.LogWarning("inputDPhysBoxDict.Values.ToList()[i] == null, removing from array. a round probably ended.");
//Logger.LogWarning("inputDPhysBoxDict.Values.ToList()[i] == null, removing from array. a round probably ended.");
inputDPhysBoxDict.Remove(inputDPhysBoxDict.Keys.ToList()[i]);
continue;
}
Expand Down Expand Up @@ -393,7 +393,6 @@ public void deleteGameObjectsAfterIndex(int baseIndex)
var amountOfObjsToDelete = gameObjsList.Count - baseIndex;
for (int i = 0; i < amountOfObjsToDelete; i++)
{
Plugin.AddExternalLogPrintToQueue("current deleting index: "+(baseIndex).ToString() );
var currGameObj = gameObjsList[baseIndex];
gameObjsList.Remove(currGameObj);
GameObject.Destroy(currGameObj);
Expand Down Expand Up @@ -648,11 +647,9 @@ public static void drawLineGroupAsSplitIntoIndividualLines(List<hitboxLineGroup>
amountOfUsedHolderObjs++;
}
}
Plugin.AddExternalLogPrintToQueue(holderGameObjs.gameObjsList.Count.ToString() + "|" + amountOfUsedHolderObjs.ToString());
// clean up any unused game objects
if ((amountOfUsedHolderObjs < holderGameObjs.gameObjsList.Count) && (holderGameObjs.gameObjsList.Count > holderGameObjs.minCapacity))
{
Plugin.AddExternalLogPrintToQueue("deleting after: "+ holderGameObjs.minCapacity.ToString() );
holderGameObjs.deleteGameObjectsAfterIndex(holderGameObjs.minCapacity);
}
// clear LineRenderer positions on any unused gameObjects, so that we don't get old lines still displaying on screen
Expand Down

0 comments on commit f72bc04

Please sign in to comment.