MCP doesn't use Java 7 by default

This commit is contained in:
Calclavia 2013-12-31 11:59:55 +08:00
parent 2eec7f95c8
commit 77ae252000

View file

@ -27,21 +27,24 @@ public class MultipartRI implements IPartFactory
@Override
public TMultiPart createPart(String name, boolean client)
{
switch (name)
if (name == "resonant_induction_wire")
{
case "resonant_induction_wire":
return new PartWire();
case "resonant_induction_flat_wire":
}
else if (name == "resonant_induction_flat_wire")
{
return new PartFlatWire();
case "resonant_induction_flat_switch_wire":
}
else if (name == "resonant_induction_flat_switch_wire")
{
return new PartFlatSwitchWire();
case "resonant_induction_multimeter":
}
else if (name == "resonant_induction_multimeter")
{
return new PartMultimeter();
case "resonant_induction_transformer":
}
else if (name == "resonant_induction_transformer")
{
return new PartTransformer();
}