Fixes an issue where a custom item model would override the block's default state model.

This commit is contained in:
Sebastian Hartte 2016-08-26 01:20:10 +02:00
parent e1e649caf7
commit dbaa0a9310

View file

@ -104,10 +104,10 @@ class ItemRendering implements IItemRendering
else
{
model = new ModelResourceLocation( item.getRegistryName(), "inventory" );
resources.add( model );
}
factory.addBootstrapComponent( new ItemModelComponent( item, ImmutableMap.of( 0, model ) ) );
resources.add( model );
}
if( !resources.isEmpty() )