Skip to content

Commit fb5945f

Browse files
committed
Place base battery schematics with full charge / Exclude fallback sprites from assetsJar
1 parent 9f03050 commit fb5945f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ project(":core"){
309309
task assetsJar(type: Jar, dependsOn: ":tools:pack"){
310310
archiveClassifier = 'assets'
311311
from files("assets"){
312-
exclude "config", "cache", "music", "sounds"
312+
exclude "config", "cache", "music", "sounds", "sprites/fallback"
313313
}
314314
}
315315

core/src/mindustry/maps/generators/BaseGenerator.java

+7-3
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,13 @@ public void postGenerate(){
175175
if(tiles == null) return;
176176

177177
for(Tile tile : tiles){
178-
if(tile.isCenter() && tile.block() instanceof PowerNode && tile.team() == state.rules.waveTeam){
179-
tile.build.configureAny(new Point2[0]);
180-
tile.build.placed();
178+
if(tile.isCenter() && tile.team() == state.rules.waveTeam){
179+
if(tile.block() instanceof PowerNode){
180+
tile.build.configureAny(new Point2[0]);
181+
tile.build.placed();
182+
}else if(tile.block() instanceof Battery){
183+
tile.build.power.status = 1f;
184+
}
181185
}
182186
}
183187
}

0 commit comments

Comments
 (0)