Skip to content

Commit 9ffc1be

Browse files
committed
fix: use correct Regex groups in VersionUtil
1 parent 974688e commit 9ffc1be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PacketWrapper/src/main/java/com/comphenix/packetwrapper/util/VersionUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public final class VersionUtil {
2626
.matches()) throw new RuntimeException("Unknown version: \"" + version + "\"");
2727

2828
MAJOR_VERSION = Integer.parseInt(matcher.group(1));
29-
MINOR_VERSION = Integer.parseInt(matcher.group(1));
30-
BUILD_VERSION = Integer.parseInt(matcher.group(1));
29+
MINOR_VERSION = Integer.parseInt(matcher.group(2));
30+
BUILD_VERSION = Integer.parseInt(matcher.group(3));
3131
}
3232

3333
private VersionUtil() {

0 commit comments

Comments
 (0)