Fixes an issue where a custom item model would override the block's default state model.
This commit is contained in:
parent
e1e649caf7
commit
dbaa0a9310
|
@ -104,10 +104,10 @@ class ItemRendering implements IItemRendering
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
model = new ModelResourceLocation( item.getRegistryName(), "inventory" );
|
model = new ModelResourceLocation( item.getRegistryName(), "inventory" );
|
||||||
|
resources.add( model );
|
||||||
}
|
}
|
||||||
|
|
||||||
factory.addBootstrapComponent( new ItemModelComponent( item, ImmutableMap.of( 0, model ) ) );
|
factory.addBootstrapComponent( new ItemModelComponent( item, ImmutableMap.of( 0, model ) ) );
|
||||||
resources.add( model );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !resources.isEmpty() )
|
if( !resources.isEmpty() )
|
||||||
|
|
Loading…
Reference in a new issue