mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-24 22:04:49 +00:00
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:
1 parent
4a07fd7491
commit
c04fdd4432
3 files changed
+75
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user