minor cleanup

This commit is contained in:
octarine-noise
2020-02-17 15:55:37 +01:00
parent 01f697d2d3
commit d741338d46
6 changed files with 16 additions and 26 deletions

View File

@@ -20,8 +20,9 @@ public class MixinModelLoader {
@Inject(at = @At("HEAD"), method = "addModel")
private void addModelHook(ModelIdentifier id, CallbackInfo info) {
// use the same trick fabric-api does to get around the no-mixins-in-constructors policy
if (id == MISSING) {
ModelLoadingCallback.EVENT.invoker().beginLoadModels((ModelLoader) (Object)this, resourceManager);
ModelLoadingCallback.EVENT.invoker().beginLoadModels((ModelLoader) (Object) this, resourceManager);
}
}
}