update profile in FX thread
This commit is contained in:
@@ -64,18 +64,20 @@ public class EDCE {
|
|||||||
if (cache.size() > CACHE_LIMIT){
|
if (cache.size() > CACHE_LIMIT){
|
||||||
cache.remove(0);
|
cache.remove(0);
|
||||||
}
|
}
|
||||||
checkCmd(packet.getCommander());
|
Platform.runLater(() -> {
|
||||||
if (checkSystem(packet.getLastSystem())){
|
checkCmd(packet.getCommander());
|
||||||
if (packet.getCommander().isDocked()) {
|
if (checkSystem(packet.getLastSystem())){
|
||||||
checkStarport(packet.getLastStarport());
|
if (packet.getCommander().isDocked()) {
|
||||||
profile.setDocked(true);
|
checkStarport(packet.getLastStarport());
|
||||||
} else {
|
profile.setDocked(true);
|
||||||
profile.setDocked(false);
|
} else {
|
||||||
profile.setStation(ModelFabric.NONE_STATION);
|
profile.setDocked(false);
|
||||||
|
profile.setStation(ModelFabric.NONE_STATION);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
checkShip(packet.getShip());
|
||||||
checkShip(packet.getShip());
|
forceUpdate = false;
|
||||||
forceUpdate = false;
|
});
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LOG.warn("Error on parse json:");
|
LOG.warn("Error on parse json:");
|
||||||
LOG.warn("{}", json);
|
LOG.warn("{}", json);
|
||||||
|
|||||||
Reference in New Issue
Block a user