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 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue