SPIGOT-7362: Properly handle null in CraftBlock#blockFaceToNotch()
This commit is contained in:
parent
dbc70bed55
commit
1f2dd8e127
@ -310,6 +310,9 @@ public class CraftBlock implements Block {
|
||||
}
|
||||
|
||||
public static EnumDirection blockFaceToNotch(BlockFace face) {
|
||||
if (face == null) {
|
||||
return null;
|
||||
}
|
||||
switch (face) {
|
||||
case DOWN:
|
||||
return EnumDirection.DOWN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user