diff --git a/fabric-lifecycle-events-v1/src/client/java/net/fabricmc/fabric/mixin/event/lifecycle/client/ClientPlayNetworkHandlerMixin.java b/fabric-lifecycle-events-v1/src/client/java/net/fabricmc/fabric/mixin/event/lifecycle/client/ClientPlayNetworkHandlerMixin.java index d6ac064379..026d923c9e 100644 --- a/fabric-lifecycle-events-v1/src/client/java/net/fabricmc/fabric/mixin/event/lifecycle/client/ClientPlayNetworkHandlerMixin.java +++ b/fabric-lifecycle-events-v1/src/client/java/net/fabricmc/fabric/mixin/event/lifecycle/client/ClientPlayNetworkHandlerMixin.java @@ -79,8 +79,8 @@ private void onGameJoin(GameJoinS2CPacket packet, CallbackInfo ci) { } } - // Called when the client disconnects from a server. - @Inject(method = "clearWorld", at = @At("HEAD")) + // Called when the client disconnects from a server or enters reconfiguration. + @Inject(method = "method_54134", at = @At("HEAD")) private void onClearWorld(CallbackInfo ci) { // If a world already exists, we need to unload all (block)entities in the world. if (this.world != null) {