Added some debugging options: (#125)

- pathfinding debug option
- commands to toggle debug logging
- QNB and pathfinding debug logging
This commit is contained in:
repo-alt authored and GitHub committed 2022-03-14 07:22:35 +01:00
1 parent a020570d0f
commit cbfe0ed0b1
7 files changed
+65 -6

No files matched your search

+5
View File
@@ -28,6 +28,7 @@ import appeng.api.networking.pathing.ControllerState;
import appeng.api.networking.pathing.IPathingGrid;
import appeng.api.util.DimensionalCoord;
import appeng.core.AEConfig;
import appeng.core.AELog;
import appeng.core.features.AEFeature;
import appeng.core.stats.Achievements;
import appeng.me.GridConnection;
@@ -182,6 +183,10 @@ public class PathGridCache implements IPathingGrid
if( pat.step(backbone, TopologyStage.PERIPHERALS) )
pat.setDead( true );
}
if (AEConfig.instance.debugPathFinding)
{
AELog.debug("Pathfinding: Backbone 2nd phase, hasAliveSegments = %b", hasAliveSegments);
}
if (!hasAliveSegments)
backbone.clear();
}