Use ordinal() instead of values()
This commit is contained in:
parent
cc561d8fb1
commit
bae8444528
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue