Fixed More Bugs
Fixed a similar bug in DDTeleporter and PocketBuilder that caused things to be oriented wrong. Specifically, teleporting would orient the player wrong relative to the destination door and pockets would be oriented wrong relative to their parents. Teleporting works properly now.
This commit is contained in:
@@ -227,8 +227,8 @@ public class PocketBuilder
|
||||
throw new IllegalStateException("The link's source world should be loaded!");
|
||||
}
|
||||
|
||||
//Check if the block at that point is actually a door
|
||||
int blockID = world.getBlockId(source.getX(), source.getY(), source.getZ());
|
||||
//Check if the block below that point is actually a door
|
||||
int blockID = world.getBlockId(source.getX(), source.getY() - 1, source.getZ());
|
||||
if (blockID != properties.DimensionalDoorID && blockID != properties.WarpDoorID &&
|
||||
blockID != properties.TransientDoorID)
|
||||
{
|
||||
@@ -236,7 +236,7 @@ public class PocketBuilder
|
||||
}
|
||||
|
||||
//Return the orientation portion of its metadata
|
||||
int orientation = world.getBlockMetadata(source.getX(), source.getY(), source.getZ()) & 3;
|
||||
int orientation = world.getBlockMetadata(source.getX(), source.getY() - 1, source.getZ()) & 3;
|
||||
return orientation;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user