Fix stupid possible compiler error.
This commit is contained in:
parent
5e57ce519e
commit
fb7913f583
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ public class HandshakeMessageHandler<S extends Enum<S> & IHandshakeState<S>> ext
|
|||
@SuppressWarnings("unchecked")
|
||||
public HandshakeMessageHandler(Class<S> stateType)
|
||||
{
|
||||
fmlHandshakeState = (AttributeKey<S>) STATE;
|
||||
fmlHandshakeState = (AttributeKey<S>) ((Object)STATE);
|
||||
initialState = Enum.valueOf(stateType, "START");
|
||||
}
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue