forked from Clones/Controlify
🐛 Fix vanilla overrides getting stuck sometimes
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
package dev.isxander.controlify.bindings;
|
||||
|
||||
import net.fabricmc.fabric.api.event.Event;
|
||||
import net.fabricmc.fabric.api.event.EventFactory;
|
||||
|
||||
public interface InputHandledEvent {
|
||||
void onInputHandled();
|
||||
|
||||
Event<InputHandledEvent> EVENT = EventFactory.createArrayBacked(InputHandledEvent.class, (listeners) -> () -> {
|
||||
for (InputHandledEvent listener : listeners) {
|
||||
listener.onInputHandled();
|
||||
}
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user