Fix stupid possible compiler error.

This commit is contained in:
Christian 2013-12-11 20:17:08 -05:00
parent 5e57ce519e
commit fb7913f583
1 changed files with 1 additions and 1 deletions

View File

@ -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