mirror of
https://github.com/songoda/EpicHoppers.git
synced 2025-02-16 11:51:54 +01:00
Added switch default.
This commit is contained in:
parent
3d240aeb6c
commit
ca5387ec2a
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user