From 059c20eab09b8a80dcfcce9900d9c53d5f23b3dc Mon Sep 17 00:00:00 2001 From: TexTrue <3140846162@qq.com> Date: Fri, 21 Jun 2024 10:22:36 +0800 Subject: [PATCH] clean --- .../obsidianui/fabric/mixin/MinecraftClientMixin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fabric/src/main/java/org/thinkingstudio/obsidianui/fabric/mixin/MinecraftClientMixin.java b/fabric/src/main/java/org/thinkingstudio/obsidianui/fabric/mixin/MinecraftClientMixin.java index 030c115..6efb237 100644 --- a/fabric/src/main/java/org/thinkingstudio/obsidianui/fabric/mixin/MinecraftClientMixin.java +++ b/fabric/src/main/java/org/thinkingstudio/obsidianui/fabric/mixin/MinecraftClientMixin.java @@ -29,17 +29,17 @@ @Mixin(MinecraftClient.class) public class MinecraftClientMixin { @Inject(method = "setScreen", at = @At("HEAD")) - private void onScreenPre(Screen screen, CallbackInfo ci) { + private void obsidianui_onScreenPre(Screen screen, CallbackInfo ci) { OpenScreenCallback.PRE.invoker().apply((MinecraftClient) (Object) this, screen); } @Inject(method = "setScreen", at = @At("RETURN")) - private void onScreenChange(Screen screen, CallbackInfo ci) { + private void obsidianui_onScreenChange(Screen screen, CallbackInfo ci) { OpenScreenCallback.POST.invoker().apply((MinecraftClient) (Object) this, screen); } @Inject(method = "onResolutionChanged", at = @At("RETURN")) - private void onResolutionChanged(CallbackInfo ci) { + private void obsidianui_onResolutionChanged(CallbackInfo ci) { ResolutionChangeCallback.EVENT.invoker().apply((MinecraftClient) (Object) this); } }