MCP doesn't use Java 7 by default
This commit is contained in:
parent
2eec7f95c8
commit
77ae252000
1 changed files with 18 additions and 15 deletions
|
@ -27,22 +27,25 @@ public class MultipartRI implements IPartFactory
|
||||||
@Override
|
@Override
|
||||||
public TMultiPart createPart(String name, boolean client)
|
public TMultiPart createPart(String name, boolean client)
|
||||||
{
|
{
|
||||||
switch (name)
|
if (name == "resonant_induction_wire")
|
||||||
{
|
{
|
||||||
case "resonant_induction_wire":
|
return new PartWire();
|
||||||
return new PartWire();
|
}
|
||||||
|
else if (name == "resonant_induction_flat_wire")
|
||||||
case "resonant_induction_flat_wire":
|
{
|
||||||
return new PartFlatWire();
|
return new PartFlatWire();
|
||||||
|
}
|
||||||
case "resonant_induction_flat_switch_wire":
|
else if (name == "resonant_induction_flat_switch_wire")
|
||||||
return new PartFlatSwitchWire();
|
{
|
||||||
|
return new PartFlatSwitchWire();
|
||||||
case "resonant_induction_multimeter":
|
}
|
||||||
return new PartMultimeter();
|
else if (name == "resonant_induction_multimeter")
|
||||||
|
{
|
||||||
case "resonant_induction_transformer":
|
return new PartMultimeter();
|
||||||
return new PartTransformer();
|
}
|
||||||
|
else if (name == "resonant_induction_transformer")
|
||||||
|
{
|
||||||
|
return new PartTransformer();
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue