0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-19 17:02:13 +02:00

Fix combat hacks always pausing on containers

Fixes https://wurstforum.net/d/644
Fixes https://wurstforum.net/d/637
Fixes https://wurstforum.net/d/631
Fixes https://wurstforum.net/d/595
This commit is contained in:
Alexander01998 2024-07-12 11:47:31 +02:00
parent f8a096c0fb
commit 0d50ef6e41

View File

@ -65,7 +65,14 @@ public abstract class MinecraftClientMixin
super(name);
}
@Inject(at = @At("HEAD"), method = "handleInputEvents()V")
/**
* Runs just before {@link MinecraftClient#handleInputEvents()}, bypassing
* the <code>overlay == null && currentScreen == null</code> check in
* {@link MinecraftClient#tick()}.
*/
@Inject(at = @At(value = "FIELD",
target = "Lnet/minecraft/client/MinecraftClient;overlay:Lnet/minecraft/client/gui/screen/Overlay;",
ordinal = 0), method = "tick()V")
private void onHandleInputEvents(CallbackInfo ci)
{
EventManager.fire(HandleInputEvent.INSTANCE);