Skip to content

Commit 2ac9b91

Browse files
committed
unused screen event
1 parent 362c197 commit 2ac9b91

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

common/src/main/java/com/lambda/mixin/MinecraftClientMixin.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import com.lambda.Lambda;
2121
import com.lambda.event.EventFlow;
2222
import com.lambda.event.events.ClientEvent;
23-
import com.lambda.event.events.ScreenEvent;
2423
import com.lambda.event.events.ScreenHandlerEvent;
2524
import com.lambda.event.events.TickEvent;
2625
import com.lambda.module.modules.player.Interact;
@@ -81,8 +80,6 @@ private void onScreenOpen(@Nullable Screen screen, CallbackInfo ci) {
8180
if (screen instanceof ScreenHandlerProvider<?> handledScreen) {
8281
EventFlow.post(new ScreenHandlerEvent.Open(handledScreen.getScreenHandler()));
8382
}
84-
85-
EventFlow.post(new ScreenEvent.Open<>(screen));
8683
}
8784

8885
@Inject(method = "setScreen", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/screen/Screen;removed()V", shift = At.Shift.AFTER))
@@ -91,8 +88,6 @@ private void onScreenRemove(@Nullable Screen screen, CallbackInfo ci) {
9188
if (currentScreen instanceof ScreenHandlerProvider<?> handledScreen) {
9289
EventFlow.post(new ScreenHandlerEvent.Close(handledScreen.getScreenHandler()));
9390
}
94-
95-
EventFlow.post(new ScreenEvent.Close<>(currentScreen));
9691
}
9792

9893
@Redirect(method = "doItemUse", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/network/ClientPlayerInteractionManager;isBreakingBlock()Z"))

common/src/main/kotlin/com/lambda/event/events/ScreenEvent.kt

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)