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