Fixed privileged blocks being "built" on landing

This commit is contained in:
Anuken
2022-04-17 20:06:08 -04:00
parent 224b1b022a
commit f21f649387
3 changed files with 4 additions and 2 deletions

View File

@@ -98,10 +98,12 @@ public class Pathfinder implements Runnable{
//don't bother setting up paths unless necessary
if(state.rules.waveTeam.needsFlowField() && !net.client()){
preloadPath(getField(state.rules.waveTeam, costGround, fieldCore));
Log.debug("Preloading ground enemy flowfield.");
//preload water on naval maps
if(spawner.getSpawns().contains(t -> t.floor().isLiquid)){
preloadPath(getField(state.rules.waveTeam, costNaval, fieldCore));
Log.debug("Preloading naval enemy flowfield.");
}
}