Closes #2501: Hide substitution buttons for processing
Hides the substition button in processing mode to avoid confusion as it is not usable there as well as not showing it as part of the tooltip. Further it ensures that patterns are encoded with the setting being disabled, should we add the support later without breaking existing setups.
This commit is contained in:
@@ -142,10 +142,13 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
|
||||
first = false;
|
||||
}
|
||||
|
||||
final String substitutionLabel = GuiText.Substitute.getLocal() + " ";
|
||||
final String canSubstitute = substitute ? GuiText.Yes.getLocal() : GuiText.No.getLocal();
|
||||
if( isCrafting )
|
||||
{
|
||||
final String substitutionLabel = GuiText.Substitute.getLocal() + " ";
|
||||
final String canSubstitute = substitute ? GuiText.Yes.getLocal() : GuiText.No.getLocal();
|
||||
|
||||
lines.add( substitutionLabel + canSubstitute );
|
||||
lines.add( substitutionLabel + canSubstitute );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user