Fixed issue #817 about skill tree path not working as intented in GUI.

This commit is contained in:
Ka0rX 2023-05-04 09:10:16 +01:00
parent 79b007f144
commit fa9c24589b

View File

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