Use ordinal() instead of values()

This commit is contained in:
Runetinal 2012-11-18 14:46:52 -06:00
parent cc561d8fb1
commit bae8444528

View file

@ -613,7 +613,7 @@ public class TileGenericPipe extends TileEntity implements IPowerReceptor, ITank
if (pipe == null && coreState.pipeId != 0){
initialize(BlockGenericPipe.createPipe(coreState.pipeId));
}
if (pipe != null && GateKind.values()[coreState.gateKind] != GateKind.None) {
if (pipe != null && coreState.gateKind != GateKind.None.ordinal()) {
if (pipe.gate == null) {
pipe.gate = new GateVanilla(pipe);
}