mirror of
https://github.com/architectury/architectury-api.git
synced 2026-04-02 13:37:43 -05:00
Fix INIT_POST not being invoked (#418)
* Fix INIT_POST not being invoked * Fix formatting * Register callback for INIT_POST event in test mod
This commit is contained in:
@@ -71,8 +71,8 @@ public abstract class MixinScreen implements ScreenInputDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
@Inject(method = "init(Lnet/minecraft/client/Minecraft;II)V", at = @At(value = "RETURN"))
|
||||
private void postInit(Minecraft minecraft, int i, int j, CallbackInfo ci) {
|
||||
@Inject(method = "rebuildWidgets", at = @At(value = "RETURN"))
|
||||
private void postInit(CallbackInfo ci) {
|
||||
ClientGuiEvent.INIT_POST.invoker().init((Screen) (Object) this, getAccess());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user