allow wireless pattern terminal to switch substitution modes

This commit is contained in:
PrototypeTrousers
2023-02-08 21:17:56 -03:00
parent d06a70ee22
commit ab1f519401
@@ -533,6 +533,14 @@ public abstract class ContainerPatternEncoder extends ContainerMEMonitorable imp
public void setSubstitute(final boolean substitute) {
this.substitute = substitute;
if (getPart() != null) {
getPart().setSubstitution(substitute);
} else if (iGuiItemObject != null) {
NBTTagCompound nbtTagCompound = iGuiItemObject.getItemStack().getTagCompound();
if (nbtTagCompound != null) {
nbtTagCompound.setBoolean("isSubstitute", substitute);
}
}
}
@Override