From 2709cbe95fd4e9ced9695103427bc37039f1b6a3 Mon Sep 17 00:00:00 2001 From: Gravita Date: Thu, 7 Apr 2022 01:39:40 +0700 Subject: [PATCH] [FIX] getPackageFromClass --- .../java11/pro/gravit/launcher/server/launch/ModuleLaunch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ServerWrapper/src/main/java11/pro/gravit/launcher/server/launch/ModuleLaunch.java b/ServerWrapper/src/main/java11/pro/gravit/launcher/server/launch/ModuleLaunch.java index ffe102a6..2539d3dd 100644 --- a/ServerWrapper/src/main/java11/pro/gravit/launcher/server/launch/ModuleLaunch.java +++ b/ServerWrapper/src/main/java11/pro/gravit/launcher/server/launch/ModuleLaunch.java @@ -61,7 +61,7 @@ public void run(ServerWrapper.Config config, String[] args) throws Throwable { } private static String getPackageFromClass(String clazz) { - int index = clazz.indexOf("."); + int index = clazz.lastIndexOf("."); if(index >= 0) { return clazz.substring(0, index); }