Fixes inscriber crash with name presses.

This commit is contained in:
yueh 2017-10-16 21:41:44 +02:00
parent bc8268af94
commit cba6c5500f

View file

@ -346,12 +346,19 @@ public class TileInscriber extends AENetworkPowerTile implements IGridTickable,
final InscriberProcessType type = InscriberProcessType.INSCRIBE; final InscriberProcessType type = InscriberProcessType.INSCRIBE;
final IInscriberRecipeBuilder builder = AEApi.instance().registries().inscriber().builder(); final IInscriberRecipeBuilder builder = AEApi.instance().registries().inscriber().builder();
return builder.withInputs( inputs ) builder.withInputs( inputs ).withOutput( renamedItem ).withProcessType( type );
.withOutput( renamedItem )
.withTopOptional( plateA ) if( isNameA )
.withBottomOptional( plateB ) {
.withProcessType( type ) builder.withTopOptional( plateA );
.build(); }
if( isNameB )
{
builder.withBottomOptional( plateB );
}
return builder.build();
} }
} }