Skip to content

Commit 3921da9

Browse files
Marvinschsmattco98
authored andcommitted
fixes worldUnload and serverDisconnect not triggering
1 parent bdfe30c commit 3921da9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/chattriggers/ctjs/internal/mixins/MinecraftClientMixin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ private void injectWorldLoad(ClientWorld world, DownloadingTerrainScreen.WorldEn
4545
TriggerType.WORLD_LOAD.triggerAll();
4646
}
4747

48-
@Inject(method = "disconnect(Lnet/minecraft/client/gui/screen/Screen;)V", at = @At("HEAD"))
49-
private void injectDisconnect(Screen screen, CallbackInfo ci) {
48+
@Inject(method = "disconnect(Lnet/minecraft/client/gui/screen/Screen;Z)V", at = @At("HEAD"))
49+
private void injectDisconnect(Screen disconnectionScreen, boolean transferring, CallbackInfo ci) {
5050
// disconnect() is also called when connecting, so we check that there is
5151
// an existing server
5252
if (this.isIntegratedServerRunning() || this.getCurrentServerEntry() != null) {

0 commit comments

Comments
 (0)