mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-11-24 05:54:35 +00:00
Added some debugging options: (#125)
- pathfinding debug option - commands to toggle debug logging - QNB and pathfinding debug logging
This commit is contained in:
1 parent
a020570d0f
commit
cbfe0ed0b1
7 files changed
+65
-6
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user