Loadout env fixes

This commit is contained in:
Anuken
2022-01-26 14:01:38 -05:00
parent 06a4f65728
commit f97d7edffb
9 changed files with 28 additions and 18 deletions

View File

@@ -411,7 +411,7 @@ public class Schematics implements Loadable{
/** Places the last launch loadout at the coordinates and fills it with the launch resources. */
public static void placeLaunchLoadout(int x, int y){
placeLoadout(universe.getLastLoadout(), x, y);
placeLoadout(universe.getLastLoadout(), x, y, state.rules.defaultTeam, state.rules.sector == null ? Blocks.air : state.rules.sector.planet.drillOverlay);
if(world.tile(x, y).build == null) throw new RuntimeException("No core at loadout coordinates!");
world.tile(x, y).build.items.add(universe.getLaunchResources());
}
@@ -455,7 +455,7 @@ public class Schematics implements Loadable{
tile.build.configureAny(config);
}
if(st.block instanceof Drill){
if(st.block instanceof Drill && resource != Blocks.air){
tile.getLinkedTiles(t -> t.setOverlay(resource));
}