SPIGOT-7362: Properly handle null in CraftBlock#blockFaceToNotch()
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user