mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-14 04:00:30 +00:00
parent
e191b08eb5
commit
9ac8f3aeea
@ -59,7 +59,7 @@ public enum CableModemVariant implements IStringSerializable
|
|||||||
@Nonnull
|
@Nonnull
|
||||||
public static CableModemVariant from( Direction facing, boolean modem, boolean peripheral )
|
public static CableModemVariant from( Direction facing, boolean modem, boolean peripheral )
|
||||||
{
|
{
|
||||||
int state = (modem ? 2 : 0) + (peripheral ? 1 : 0);
|
int state = (modem ? 1 : 0) + (peripheral ? 2 : 0);
|
||||||
return facing == null ? None : VALUES[1 + 6 * state + facing.get3DDataValue()];
|
return facing == null ? None : VALUES[1 + 6 * state + facing.get3DDataValue()];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user