42 {
44
45 if (targetIB.HasEnergyManager())
46 {
48 if (attachedDevice)
49 targetIB = attachedDevice;
50
51 action_data.m_MainItem.GetCompEM().PlugThisInto(targetIB);
52
53 if (!
g_Game.IsDedicatedServer())
54 {
55 if (!action_data.m_Player.IsPlacingLocal())
56 {
57 action_data.m_Player.PlacingStartLocal(action_data.m_MainItem);
59 }
60 }
61 else
62 {
63 if (!action_data.m_Player.IsPlacingServer())
64 {
65 action_data.m_Player.PlacingStartServer(action_data.m_MainItem);
67 }
68 }
69 }
70 }
class GP5GasMask extends MaskBase ItemBase
ItemBase GetAttachedDevice(ItemBase parent)