SPIGOT-7362: Properly handle null in CraftBlock#blockFaceToNotch()

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
CraftBukkit/Spigot
2023-05-30 21:14:16 -04:00
parent a345ec2e35
commit ce8a5d4953

View File

@@ -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;