Deprecated Block.getFace(Face) and Block.getFace(Face,int); use getRelative()

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
CraftBukkit/Spigot 2011-07-17 15:02:32 +02:00
parent 8ab7680e6b
commit 5e6cc8625b

View file

@ -182,7 +182,7 @@ public class CraftBlock implements Block {
* @return Block at the given face
*/
public Block getFace(final BlockFace face) {
return getFace(face, 1);
return getRelative(face, 1);
}
/**
@ -201,7 +201,7 @@ public class CraftBlock implements Block {
* @return Block at the given face
*/
public Block getFace(final BlockFace face, final int distance) {
return getRelative(face.getModX() * distance, face.getModY() * distance, face.getModZ() * distance);
return getRelative(face, distance);
}
/**