Items which are burned or frozen cannot do some things.

This commit is contained in:
2018-02-16 12:15:04 +00:00
parent 543ea92f8f
commit a45807cb2d
3 changed files with 19 additions and 6 deletions

View File

@ -1730,7 +1730,6 @@ namespace EduNetworkBuilder
}
}
public void RegisterDeviceReplaced(string source)
{
foreach (NetTest one in NetTests)
@ -1753,6 +1752,7 @@ namespace EduNetworkBuilder
if(NB.GetComponentType(nc) == GeneralComponentType.device)
{
nd = (NetworkDevice)nc;
if (nd.IsBurned || nd.isFrozen() || nd.PowerOff) continue; //skip if burnt, off or frozen
nd.DHCPRequestFromHere();
}
}