mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-20 09:17:19 +07:00
Fixed privileged blocks being "built" on landing
This commit is contained in:
parent
224b1b022a
commit
f21f649387
@ -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.");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -217,7 +217,7 @@ public class Control implements ApplicationListener, Loadable{
|
||||
|
||||
boolean anyBuilds = false;
|
||||
for(var build : state.rules.defaultTeam.data().buildings){
|
||||
if(!(build instanceof CoreBuild)){
|
||||
if(!(build instanceof CoreBuild) && !build.block.privileged){
|
||||
var ccore = build.closestCore();
|
||||
|
||||
if(ccore != null && build.within(ccore, state.rules.enemyCoreBuildRadius)){
|
||||
|
@ -385,7 +385,7 @@ public class FloorRenderer{
|
||||
}
|
||||
}
|
||||
|
||||
Log.debug("Time to cache: @", Time.elapsed());
|
||||
Log.debug("Generated world mesh: @ms", Time.elapsed());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user