diff --git a/StevenDimDoors/mod_pocketDim/DDTeleporter.java b/StevenDimDoors/mod_pocketDim/DDTeleporter.java index 06b72891..bb9ca30c 100644 --- a/StevenDimDoors/mod_pocketDim/DDTeleporter.java +++ b/StevenDimDoors/mod_pocketDim/DDTeleporter.java @@ -189,7 +189,7 @@ public class DDTeleporter } // Determine if our destination is in another realm. - boolean difDest = entity.dimension == destination.getDimension(); + boolean difDest = entity.dimension != destination.getDimension(); if (difDest) { // Destination isn't loaded? Then we need to load it. @@ -197,8 +197,8 @@ public class DDTeleporter if (newWorld == null) { DimensionManager.initDimension(destination.getDimension()); + newWorld = DimensionManager.getWorld(destination.getDimension()); } - newWorld = DimensionManager.getWorld(destination.getDimension()); } else { diff --git a/StevenDimDoors/mod_pocketDim/blocks/TransientDoor.java b/StevenDimDoors/mod_pocketDim/blocks/TransientDoor.java index 48ce75ed..c1fe83cd 100644 --- a/StevenDimDoors/mod_pocketDim/blocks/TransientDoor.java +++ b/StevenDimDoors/mod_pocketDim/blocks/TransientDoor.java @@ -61,11 +61,8 @@ public class TransientDoor extends WarpDoor int var12 = (int) (MathHelper.floor_double((double) ((entity.rotationYaw + 90) * 4.0F / 360.0F) + 0.5D) & 3); int orientation = world.getBlockMetadata(x, y - 1, z); - if (!world.isRemote && (orientation >= 4 && orientation <= 7) && (orientation - 4) == var12 && - world.getBlockId(x, y - 1, z) == this.blockID) + if (!world.isRemote && orientation == var12 && world.getBlockId(x, y - 1, z) == this.blockID) { - this.onPoweredBlockChange(world, x, y, z, false); - DimLink link = PocketManager.getLink(x, y, z, world.provider.dimensionId); if (link != null) { diff --git a/StevenDimDoors/mod_pocketDim/world/GatewayGenerator.java b/StevenDimDoors/mod_pocketDim/world/GatewayGenerator.java index bc52bf7d..f7379d31 100644 --- a/StevenDimDoors/mod_pocketDim/world/GatewayGenerator.java +++ b/StevenDimDoors/mod_pocketDim/world/GatewayGenerator.java @@ -146,7 +146,7 @@ public class GatewayGenerator implements IWorldGenerator } //Place the shiny transient door into a dungeon - ItemDimensionalDoor.placeDoorBlock(world, x, y + 1, z, 0, mod_pocketDim.transientDoor); + ItemDimensionalDoor.placeDoorBlock(world, x, y, z, 0, mod_pocketDim.transientDoor); } } }