Merge pull request #132 from SenseiKiwi/master
Fixed Gateway Crash (for real)
This commit is contained in:
@@ -74,7 +74,7 @@ public class yCoordHelper
|
|||||||
public static Point3D findSafeCubeUp(World world, int x, int startY, int z)
|
public static Point3D findSafeCubeUp(World world, int x, int startY, int z)
|
||||||
{
|
{
|
||||||
// Search for a 3x3x3 cube of air with blocks underneath
|
// Search for a 3x3x3 cube of air with blocks underneath
|
||||||
// We can also match against a 3x2x3 box with
|
// We can also match against a 3x2x3 box with replaceable blocks underneath
|
||||||
// We shift the search area into the bounds of a chunk for the sake of simplicity,
|
// We shift the search area into the bounds of a chunk for the sake of simplicity,
|
||||||
// so that we don't need to worry about working across chunks.
|
// so that we don't need to worry about working across chunks.
|
||||||
|
|
||||||
|
|||||||
@@ -82,8 +82,8 @@ public abstract class BaseGateway
|
|||||||
DungeonSchematic schematic = this.getSchematicToBuild(world, x, y, z);
|
DungeonSchematic schematic = this.getSchematicToBuild(world, x, y, z);
|
||||||
|
|
||||||
//apply filters
|
//apply filters
|
||||||
schematic.applyFilter(filter);
|
|
||||||
schematic.applyImportFilters(properties);
|
schematic.applyImportFilters(properties);
|
||||||
|
schematic.applyFilter(filter);
|
||||||
|
|
||||||
Point3D doorLocation = filter.getEntranceDoorLocation();
|
Point3D doorLocation = filter.getEntranceDoorLocation();
|
||||||
orientation = filter.getEntranceOrientation();
|
orientation = filter.getEntranceOrientation();
|
||||||
|
|||||||
Reference in New Issue
Block a user