Skip to content

Commit cf3ef8f

Browse files
committed
compileonly
1 parent 3c0a6f6 commit cf3ef8f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,12 @@ subprojects {
4545
}
4646
repositories {
4747
mavenCentral()
48-
maven("https://dist.labymod.net/api/v1/maven/release/")
4948
mavenLocal()
5049
}
5150

5251
dependencies {
5352
compileOnly("org.jetbrains:annotations:22.0.0")
54-
implementation("net.labymod.serverapi:core:0.1.9")
53+
compileOnly("net.labymod.serverapi:core:0.1.12")
5554
compileOnly("com.google.auto.service:auto-service:1.1.1")
5655
annotationProcessor("com.google.auto.service:auto-service:1.1.1")
5756
}

voicechat/src/main/java/net/labymod/serverapi/integration/voicechat/VoiceChatIntegration.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ public class VoiceChatIntegration implements LabyModProtocolIntegration {
4848

4949
@Override
5050
public void initialize(AbstractLabyModProtocolService protocolService) {
51+
if (this.protocolService != null) {
52+
throw new IllegalStateException("VoiceChatIntegration is already initialized");
53+
}
54+
5155
this.protocolService = protocolService;
5256

5357
this.addonProtocol = new AddonProtocol(protocolService, "voicechat");

0 commit comments

Comments
 (0)