Avoid caching paths on servers

This commit is contained in:
Anuken
2022-04-17 18:53:28 -04:00
parent 42c14ecfbb
commit d1cf1e2aba
3 changed files with 13 additions and 7 deletions

View File

@@ -95,7 +95,8 @@ public class Pathfinder implements Runnable{
tiles[i] = packTile(tile);
}
if(state.rules.waveTeam.needsFlowField()){
//don't bother setting up paths unless necessary
if(state.rules.waveTeam.needsFlowField() && !net.client()){
preloadPath(getField(state.rules.waveTeam, costGround, fieldCore));
//preload water on naval maps