Only inject integration first time
This commit is contained in:
parent
baca029fd0
commit
2bd2fd7ef7
|
|
@ -25,8 +25,13 @@ public abstract class MultipartAppenderMixin {
|
|||
throw new AssertionError();
|
||||
}
|
||||
|
||||
private static boolean handlerInjected = false;
|
||||
|
||||
@Inject(method = "onPrepareModelBaking", at = @At("RETURN"))
|
||||
private static void setupHelper(CallbackInfo ci) {
|
||||
if(handlerInjected)
|
||||
return;
|
||||
handlerInjected = true;
|
||||
ModernFixClient.CLIENT_INTEGRATIONS.add(new ModernFixClientIntegration() {
|
||||
@Override
|
||||
public UnbakedModel onUnbakedModelLoad(ResourceLocation location, UnbakedModel originalModel, ModelBakery bakery) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user