This commit is contained in:
Jesse Boyd 2019-06-28 22:43:52 +10:00
parent fecb380d44
commit 3b2031c22c
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -69,7 +69,7 @@ public enum Direction {
private final int right;
private final BlockVector3 blockPoint;
private static HashMap<String, Direction> map = new HashMap<>();
private static HashMap<CharSequence, Direction> map = new HashMap<>();
static {
for (Direction dir : Direction.values()) {
@ -87,7 +87,7 @@ public enum Direction {
}
public static Direction get(CharSequence sequence) {
return map.get(sequence.toString());
return map.get(sequence);
}
public Direction getLeft() {