From fa9c24589bff7c45cbb3983d740534acd4b72ec8 Mon Sep 17 00:00:00 2001 From: Ka0rX Date: Thu, 4 May 2023 09:10:16 +0100 Subject: [PATCH] Fixed issue #817 about skill tree path not working as intented in GUI. --- .../net/Indyuce/mmocore/gui/skilltree/display/PathType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/skilltree/display/PathType.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/skilltree/display/PathType.java index 1769fb20..10b4f67e 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/skilltree/display/PathType.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/skilltree/display/PathType.java @@ -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;