forked from Upstream/mmocore
Fixed issue #817 about skill tree path not working as intented in GUI.
This commit is contained in:
parent
79b007f144
commit
fa9c24589b
@ -18,7 +18,7 @@ public enum PathType {
|
||||
DEFAULT;
|
||||
|
||||
public static PathType getPathType(boolean hasUp,boolean hasRight,boolean hasDown,boolean hasLeft) {
|
||||
if ((hasUp || hasDown) && !hasLeft && hasRight) {
|
||||
if ((hasUp || hasDown) && !hasLeft && !hasRight) {
|
||||
return UP;
|
||||
} else if ((hasRight || hasLeft)&& !hasUp && !hasDown) {
|
||||
return RIGHT;
|
||||
|
Loading…
Reference in New Issue
Block a user