From 21267309a12dbe377a6cb6083a14f209cf03e71e Mon Sep 17 00:00:00 2001 From: StevenRS11 Date: Tue, 14 Jan 2014 18:54:30 -0500 Subject: [PATCH] Cleaned up a bit --- .../mod_pocketDim/world/gateways/BaseGateway.java | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/main/java/StevenDimDoors/mod_pocketDim/world/gateways/BaseGateway.java b/src/main/java/StevenDimDoors/mod_pocketDim/world/gateways/BaseGateway.java index bd15b725..60223f3c 100644 --- a/src/main/java/StevenDimDoors/mod_pocketDim/world/gateways/BaseGateway.java +++ b/src/main/java/StevenDimDoors/mod_pocketDim/world/gateways/BaseGateway.java @@ -46,15 +46,7 @@ public abstract class BaseGateway */ public boolean generate(World world, int x, int y, int z) { - /** - * We have two cases here. The gateway may or may not specify a schematic to load from. If it does, we need to line up the door in the schematic with the given rift. - * I tried doing this by taking the difference between the selected coords for the door, and the position of the door relative to the bounds of the .schematic, - * but it doesnt work. It seems like it should, though. Odd. - * - * Now we have a new issue- we get an index array out of bounds. One of the exported *blocks* is -69. - * - */ - Point3D doorLocation= new Point3D(0,0,0); + int orientation = 0; try { @@ -63,7 +55,7 @@ public abstract class BaseGateway Schematic schematic = Schematic.readFromResource(schematicPath); schematic.applyFilter(filter); - doorLocation = filter.getEntranceDoorLocation(); + Point3D doorLocation = filter.getEntranceDoorLocation(); orientation = filter.getEntranceOrientation(); schematic.copyToWorld(world, x-doorLocation.getX(), y+1-doorLocation.getY(), z-doorLocation.getZ()); @@ -72,6 +64,7 @@ public abstract class BaseGateway catch (Exception e) { e.printStackTrace(); + System.err.println("Could not load schematic "+this.schematicPath+" for gateway"); return false; } this.generateRandomBits(world, x,y,z);