Fixed casing eject effects
This commit is contained in:
@@ -281,7 +281,7 @@ public class Schematics implements Loadable{
|
||||
/** Creates an array of build requests from a schematic's data, centered on the provided x+y coordinates. */
|
||||
public Seq<BuildPlan> toRequests(Schematic schem, int x, int y){
|
||||
return schem.tiles.map(t -> new BuildPlan(t.x + x - schem.width/2, t.y + y - schem.height/2, t.rotation, t.block, t.config).original(t.x, t.y, schem.width, schem.height))
|
||||
.removeAll(s -> !s.block.isVisible() || !s.block.unlockedNow());
|
||||
.removeAll(s -> (!s.block.isVisible() && !(s.block instanceof CoreBlock)) || !s.block.unlockedNow());
|
||||
}
|
||||
|
||||
/** @return all the valid loadouts for a specific core type. */
|
||||
@@ -383,7 +383,7 @@ public class Schematics implements Loadable{
|
||||
Building tile = world.build(cx, cy);
|
||||
|
||||
if(tile != null && !counted.contains(tile.pos()) && !(tile.block instanceof ConstructBlock)
|
||||
&& (tile.block.isVisible() || (tile.block instanceof CoreBlock))){
|
||||
&& (tile.block.isVisible() || tile.block instanceof CoreBlock)){
|
||||
Object config = tile.config();
|
||||
|
||||
tiles.add(new Stile(tile.block, tile.tileX() + offsetX, tile.tileY() + offsetY, config, (byte)tile.rotation));
|
||||
|
||||
Reference in New Issue
Block a user