fix mixin

This commit is contained in:
IThundxr 2024-06-07 16:24:52 -04:00
parent 47e80a66a0
commit 349e7b3cb3
Failed to generate hash of commit

View file

@ -22,8 +22,8 @@ abstract class MinecraftMixin {
}
}
@Inject(method = "clearClientLevel(Lnet/minecraft/client/gui/screens/Screen;)V", at = @At("HEAD"))
private void flywheel$onClearLevel(CallbackInfo ci) {
@Inject(method = "disconnect(Lnet/minecraft/client/gui/screens/Screen;)V", at = @At("HEAD"))
private void flywheel$onDisconnect(CallbackInfo ci) {
if (level != null) {
LevelAttached.invalidateLevel(level);
}