mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-14 19:25:23 -05:00
compile fix
This commit is contained in:
parent
fa7108e6e8
commit
ae4f5b739e
1 changed files with 2 additions and 3 deletions
|
@ -17,7 +17,6 @@
|
|||
package net.fabricmc.fabric.impl.client.model;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.sun.istack.internal.Nullable;
|
||||
import net.fabricmc.fabric.api.client.model.*;
|
||||
import net.fabricmc.loader.launch.common.FabricLauncherBase;
|
||||
import net.minecraft.client.render.model.ModelLoader;
|
||||
|
@ -126,12 +125,12 @@ public class ModelLoadingRegistryImpl implements ModelLoadingRegistry {
|
|||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
/* @Nullable */
|
||||
public UnbakedModel loadModelFromResource(Identifier resourceId) {
|
||||
return loadCustomModel((r) -> r.loadModelResource(resourceId, this), modelResourceProviders, "resource provider");
|
||||
}
|
||||
|
||||
@Nullable
|
||||
/* @Nullable */
|
||||
public UnbakedModel loadModelFromVariant(Identifier variantId) {
|
||||
if (!(variantId instanceof ModelIdentifier)) {
|
||||
return loadModelFromResource(variantId);
|
||||
|
|
Loading…
Reference in a new issue