Added switch default.

This commit is contained in:
Brianna 2020-09-05 10:02:00 -05:00
parent 3d240aeb6c
commit ca5387ec2a

View File

@ -41,8 +41,6 @@ public enum HopperDirection {
public BlockFace getDirection() {
switch (this) {
case DOWN:
return BlockFace.DOWN;
case NORTH:
return BlockFace.NORTH;
case SOUTH:
@ -51,9 +49,9 @@ public enum HopperDirection {
return BlockFace.WEST;
case EAST:
return BlockFace.EAST;
default:
return BlockFace.DOWN;
}
// really shouldn't happen, tbh
return BlockFace.DOWN;
}
public int getX() {