mirror of
https://github.com/Wurst-Imperium/Wurst7.git
synced 2024-09-20 01:12: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:
parent
f8a096c0fb
commit
0d50ef6e41
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user