Fixed Gateway Crash (for real)
Fixed a bug in BaseGateway that would cause it to still crash servers during world generation. The import filters must be applied before searching for doors because GatewayBlockFilter uses Forge-provided block IDs and not the standard export values. Also fixed a comment in yCoordHelper that cut off strangely.
This commit is contained in:
parent
8d372fadff
commit
3079e546a1
2 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ public class yCoordHelper
|
|||
public static Point3D findSafeCubeUp(World world, int x, int startY, int z)
|
||||
{
|
||||
// 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,
|
||||
// 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);
|
||||
|
||||
//apply filters
|
||||
schematic.applyFilter(filter);
|
||||
schematic.applyImportFilters(properties);
|
||||
schematic.applyFilter(filter);
|
||||
|
||||
Point3D doorLocation = filter.getEntranceDoorLocation();
|
||||
orientation = filter.getEntranceOrientation();
|
||||
|
|
Loading…
Add table
Reference in a new issue