Skip to content

Commit

Permalink
Fix #1487 Random crash in WeightedRandomModel
Browse files Browse the repository at this point in the history
  • Loading branch information
Nedelosk committed Oct 30, 2016
1 parent a02af0d commit 2191d00
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -224,9 +224,6 @@ public Collection<ResourceLocation> getTextures(){

@Override
public IBakedModel bake(IModelState state, VertexFormat format, Function<ResourceLocation, TextureAtlasSprite> bakedTextureGetter){
if(!Attributes.moreSpecific(format, Attributes.DEFAULT_BAKED_FORMAT)){
throw new IllegalArgumentException("can't bake vanilla weighted models to the format that doesn't fit into the default one: " + format);
}
if(variants.size() == 1){
IModel model = models.get(0);
return model.bake(MultiModelState.getPartState(state, model, 0), format, bakedTextureGetter);
Expand Down

0 comments on commit 2191d00

Please sign in to comment.