Fixed Channel requirements for illuminated panels.

This commit is contained in:
AlgorithmX2 2014-04-09 14:22:36 -05:00
parent db6a958a6f
commit ac0c562b02
7 changed files with 11 additions and 11 deletions

View file

@ -7,7 +7,7 @@ public class PartCraftingMonitor extends PartMonitor
{
public PartCraftingMonitor(ItemStack is) {
super( PartCraftingMonitor.class, is );
super( PartCraftingMonitor.class, is,true );
frontBright = CableBusTextures.PartCraftingMonitor_Bright;
frontColored = CableBusTextures.PartCraftingMonitor_Colored;
frontDark = CableBusTextures.PartCraftingMonitor_Dark;

View file

@ -13,7 +13,7 @@ public class PartDarkMonitor extends PartMonitor
{
public PartDarkMonitor(ItemStack is) {
super( PartDarkMonitor.class, is );
super( PartDarkMonitor.class, is,false );
notLightSource = false;
}

View file

@ -114,9 +114,10 @@ public class PartMonitor extends AEBasePart implements IPartMonitor, IPowerChann
super( PartMonitor.class, is );
}
protected PartMonitor(Class c, ItemStack is) {
protected PartMonitor(Class c, ItemStack is, boolean requireChannel ) {
super( c, is );
if ( notLightSource )
if ( requireChannel )
proxy.setFlags( GridFlags.REQUIRE_CHANNEL );
else
proxy.setIdlePowerUsage( 1.0 / 16.0 ); // lights drain a little bit.

View file

@ -7,7 +7,7 @@ public class PartPatternTerminal extends PartMonitor
{
public PartPatternTerminal(ItemStack is) {
super( PartPatternTerminal.class, is );
super( PartPatternTerminal.class, is, true );
frontBright = CableBusTextures.PartPatternTerm_Bright;
frontColored = CableBusTextures.PartPatternTerm_Colored;
frontDark = CableBusTextures.PartPatternTerm_Dark;

View file

@ -13,8 +13,7 @@ public class PartSemiDarkMonitor extends PartMonitor
{
public PartSemiDarkMonitor(ItemStack is) {
super( PartSemiDarkMonitor.class, is );
super( PartSemiDarkMonitor.class, is,false );
notLightSource = false;
}

View file

@ -150,11 +150,11 @@ public class PartStorageMonitor extends PartMonitor implements IPartStorageMonit
}
protected PartStorageMonitor(Class myClass, ItemStack is) {
super( myClass, is );
super( myClass, is,true );
}
public PartStorageMonitor(ItemStack is) {
super( PartStorageMonitor.class, is );
super( PartStorageMonitor.class, is,true );
frontBright = CableBusTextures.PartStorageMonitor_Bright;
frontColored = CableBusTextures.PartStorageMonitor_Colored;
frontDark = CableBusTextures.PartStorageMonitor_Dark;

View file

@ -30,7 +30,7 @@ public class PartTerminal extends PartMonitor implements ITerminalHost, IConfigM
AppEngInternalInventory viewCell = new AppEngInternalInventory( this, 5 );
public PartTerminal(Class clz, ItemStack is) {
super( clz, is );
super( clz, is,true );
cm.registerSetting( Settings.SORT_BY, SortOrder.NAME );
cm.registerSetting( Settings.VIEW_MODE, ViewItems.ALL );
@ -54,7 +54,7 @@ public class PartTerminal extends PartMonitor implements ITerminalHost, IConfigM
}
public PartTerminal(ItemStack is) {
super( PartTerminal.class, is );
super( PartTerminal.class, is,true );
frontBright = CableBusTextures.PartTerminal_Bright;
frontColored = CableBusTextures.PartTerminal_Colored;
frontDark = CableBusTextures.PartTerminal_Dark;