Started work on PathfinderCache - this will store paths that have been already calculated for later use. When a path becomes possibly invalidated, it is removed from the cache.

This commit is contained in:
Aidan C. Brady committed 2014-08-08 00:13:17 -04:00
1 parent 4a07fd7491
commit c04fdd4432
3 files changed
+75 -1

No files matched your search

+4 -1
View File
@@ -61,6 +61,7 @@ import mekanism.common.tile.TileEntityElectricBlock;
import mekanism.common.tile.TileEntityEnergizedSmelter;
import mekanism.common.tile.TileEntitySalinationBlock;
import mekanism.common.tile.TileEntitySalinationValve;
import mekanism.common.transporter.PathfinderCache;
import mekanism.common.transporter.TransporterManager;
import mekanism.common.util.MekanismUtils;
import mekanism.common.util.MekanismUtils.ResourceType;
@@ -983,8 +984,10 @@ public class Mekanism
activeVibrators.clear();
worldTickHandler.resetRegenChunks();
//Reset consistent managers
MultiblockManager.reset();
TransporterManager.flowingStacks.clear();
TransporterManager.reset();
PathfinderCache.reset();
}
@EventHandler