mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-29 03:13:52 -07:00
Deprecated Block.getFace(Face) and Block.getFace(Face,int); use getRelative()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user