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:
@@ -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