master
sky 2020-03-07 14:08:42 +08:00
parent 97f710809c
commit 76218ab66f
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ dependencies {
shadow group: 'me.clip', name: 'placeholderapi', version: '2.10.4'
shadow group: 'com.google.inject', name: 'guice', version: '4.2.2'
shadow fileTree(dir: 'libs', includes: ['*.jar'])
compile "org.jetbrains.kotlin:kotlin-stdlib"
}
shadowJar {

View File

@ -92,7 +92,7 @@ public class PacketSerializer implements Listener {
Packet packet = null;
try {
packet = parser.parser((JsonObject) new JsonParser().parse(origin));
} catch (JsonSyntaxException ignore) {
} catch (NullPointerException | JsonSyntaxException ignore) {
} catch (Throwable t) {
t.printStackTrace();
}