more work on gateways, plus tried to add a pack.

Gateway is generating, finally, but it has some... issues. Inquire
within.

Just generate a new world, and use an unstable door to warp to the first
that gens.
This commit is contained in:
StevenRS11
2014-01-13 17:49:13 -05:00
parent 1104961c54
commit 7dadef953d
13 changed files with 56 additions and 1 deletions

View File

@@ -155,7 +155,9 @@ public class Schematic {
}
catch (Exception ex)
{
ex.printStackTrace();
throw new InvalidSchematicException("The schematic could not be decoded.");
}
//load size of schematic to generate
@@ -377,7 +379,10 @@ public class Schematic {
for (dx = 0; dx < width; dx++)
{
//In the future, we might want to make this more efficient by building whole chunks at a time
setBlockDirectly(world, x + dx, y + dy, z + dz, blocks[index], metadata[index]);
if(blocks[index]!=0)
{
setBlockDirectly(world, x + dx, y + dy, z + dz, blocks[index], metadata[index]);
}
index++;
}
}