Clean up.
This commit is contained in:
parent
0dff1ad0df
commit
843578c8db
1 changed files with 1 additions and 5 deletions
|
@ -242,16 +242,12 @@ public class TileSecurity extends AENetworkTile implements ITerminalHost, IAEApp
|
||||||
return isActive && gridProxy.isActive();
|
return isActive && gridProxy.isActive();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateNodeCount(int nodes)
|
|
||||||
{
|
|
||||||
gridProxy.setIdlePowerUsage( 2.0 + ((double) nodes / 0.033) );
|
|
||||||
}
|
|
||||||
|
|
||||||
public TileSecurity() {
|
public TileSecurity() {
|
||||||
addNewHandler( new SecurityHandler() );
|
addNewHandler( new SecurityHandler() );
|
||||||
gridProxy.setFlags( GridFlags.REQUIRE_CHANNEL );
|
gridProxy.setFlags( GridFlags.REQUIRE_CHANNEL );
|
||||||
gridProxy.setIdlePowerUsage( 2.0 );
|
gridProxy.setIdlePowerUsage( 2.0 );
|
||||||
diffrence++;
|
diffrence++;
|
||||||
|
|
||||||
securityKey = System.currentTimeMillis() * 10 + diffrence;
|
securityKey = System.currentTimeMillis() * 10 + diffrence;
|
||||||
if ( diffrence > 10 )
|
if ( diffrence > 10 )
|
||||||
diffrence = 0;
|
diffrence = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue