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,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;