Fixes inscriber crash with name presses.
This commit is contained in:
parent
bc8268af94
commit
cba6c5500f
1 changed files with 13 additions and 6 deletions
|
@ -346,12 +346,19 @@ public class TileInscriber extends AENetworkPowerTile implements IGridTickable,
|
|||
final InscriberProcessType type = InscriberProcessType.INSCRIBE;
|
||||
|
||||
final IInscriberRecipeBuilder builder = AEApi.instance().registries().inscriber().builder();
|
||||
return builder.withInputs( inputs )
|
||||
.withOutput( renamedItem )
|
||||
.withTopOptional( plateA )
|
||||
.withBottomOptional( plateB )
|
||||
.withProcessType( type )
|
||||
.build();
|
||||
builder.withInputs( inputs ).withOutput( renamedItem ).withProcessType( type );
|
||||
|
||||
if( isNameA )
|
||||
{
|
||||
builder.withTopOptional( plateA );
|
||||
}
|
||||
|
||||
if( isNameB )
|
||||
{
|
||||
builder.withBottomOptional( plateB );
|
||||
}
|
||||
|
||||
return builder.build();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue