This commit is contained in:
Anuken
2019-12-29 12:24:51 -05:00
parent 730d30ef98
commit 566052cabf
4 changed files with 5 additions and 2 deletions

View File

@@ -249,6 +249,7 @@ public class Schematics implements Loadable{
public void placeLoadout(Schematic schem, int x, int y){
Stile coreTile = schem.tiles.find(s -> s.block instanceof CoreBlock);
if(coreTile == null) throw new IllegalArgumentException("Schematic has no core tile. Exiting.");
int ox = x - coreTile.x, oy = y - coreTile.y;
schem.tiles.each(st -> {
Tile tile = world.tile(st.x + ox, st.y + oy);

File diff suppressed because one or more lines are too long