fix Unknown state notify
This commit is contained in:
@@ -27,12 +27,9 @@ public class StatusRequest implements CSPacket {
|
||||
serverPort = netStream.readUnsignedShort();
|
||||
|
||||
int nextStateId = netStream.readVarInt();
|
||||
State state = State.getStateById(nextStateId);
|
||||
if (state != null) {
|
||||
nextState = state;
|
||||
} else {
|
||||
nextState = State.getStateById(nextStateId);
|
||||
if (nextState.equals(State.UNKNOWN)){
|
||||
log.warn("Unknown state ({})!", nextStateId);
|
||||
nextState = State.UNKNOWN;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user