Added an option to toggle oredict subsitutions for patterns.
It adds a backward compatibility to convert current patterns to use oredict by default, which should be removed with rv4 stable. Closes #1156
This commit is contained in:
@@ -54,7 +54,7 @@ public enum ButtonToolTips
|
||||
|
||||
LevelType, LevelType_Energy, LevelType_Item, InventoryTweaks, TerminalStyle, TerminalStyle_Full, TerminalStyle_Tall, TerminalStyle_Small,
|
||||
|
||||
Stash, StashDesc, Encode, EncodeDescription, Substitutions, SubstitutionsOn, SubstitutionsOff, SubstitutionsDesc, CraftOnly, CraftEither,
|
||||
Stash, StashDesc, Encode, EncodeDescription, Substitutions, SubstitutionsOn, SubstitutionsOff, SubstitutionsDescEnabled, SubstitutionsDescDisabled, CraftOnly, CraftEither,
|
||||
|
||||
Craft, Mod, DoesntDespawn, EmitterMode, CraftViaRedstone, EmitWhenCrafting, ReportInaccessibleItems, ReportInaccessibleItemsYes, ReportInaccessibleItemsNo,
|
||||
|
||||
|
||||
@@ -47,9 +47,20 @@ public enum GuiText
|
||||
// tunnel names
|
||||
METunnel, ItemTunnel, RedstoneTunnel, EUTunnel, FluidTunnel, OCTunnel, LightTunnel, RFTunnel, PressureTunnel,
|
||||
|
||||
StoredSize, CopyMode, CopyModeDesc, PatternTerminal, CraftingPattern,
|
||||
StoredSize, CopyMode, CopyModeDesc, PatternTerminal,
|
||||
|
||||
ProcessingPattern, Crafts, Creates, And, With, MolecularAssembler,
|
||||
// Pattern tooltips
|
||||
CraftingPattern,
|
||||
ProcessingPattern,
|
||||
Crafts,
|
||||
Creates,
|
||||
And,
|
||||
With,
|
||||
Substitute,
|
||||
Yes,
|
||||
No,
|
||||
|
||||
MolecularAssembler,
|
||||
|
||||
StoredPower, MaxPower, RequiredPower, Efficiency, InWorldCrafting,
|
||||
|
||||
|
||||
@@ -58,8 +58,8 @@ import appeng.helpers.IMouseWheelItem;
|
||||
public class PacketValueConfig extends AppEngPacket
|
||||
{
|
||||
|
||||
public final String Name;
|
||||
public final String Value;
|
||||
private final String Name;
|
||||
private final String Value;
|
||||
|
||||
// automatic.
|
||||
public PacketValueConfig( final ByteBuf stream ) throws IOException
|
||||
@@ -157,6 +157,10 @@ public class PacketValueConfig extends AppEngPacket
|
||||
{
|
||||
cpt.clear();
|
||||
}
|
||||
else if( this.Name.equals( "PatternTerminal.Substitute" ) )
|
||||
{
|
||||
cpt.ct.setSubstitution( this.Value.equals( "1" ) );
|
||||
}
|
||||
}
|
||||
else if( this.Name.startsWith( "StorageBus." ) && c instanceof ContainerStorageBus )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user