Merge pull request #4 from AlexIIL/patch-1
Fix Templates blocking other custom models.
This commit is contained in:
commit
49e69227df
@ -20,9 +20,7 @@ public class TemplateModelVariantProvider implements ModelVariantProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UnbakedModel loadModelVariant(ModelIdentifier modelId, ModelProviderContext context) throws ModelProviderException {
|
public UnbakedModel loadModelVariant(ModelIdentifier modelId, ModelProviderContext context) throws ModelProviderException {
|
||||||
UnbakedModel variant = variants.get(modelId);
|
return variants.get(modelId);
|
||||||
if (variant == null) throw new ModelProviderException("Couldn't find model for ID " + modelId);
|
|
||||||
return variant;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void registerTemplateModels(Block block, BlockState itemState, Function<BlockState, AbstractModel> model) {
|
public void registerTemplateModels(Block block, BlockState itemState, Function<BlockState, AbstractModel> model) {
|
||||||
|
Loading…
Reference in New Issue
Block a user