diff --git a/client/src/main/java/ru/trader/EDCE.java b/client/src/main/java/ru/trader/EDCE.java index e46932e..ccdaae6 100644 --- a/client/src/main/java/ru/trader/EDCE.java +++ b/client/src/main/java/ru/trader/EDCE.java @@ -66,9 +66,11 @@ public class EDCE { } checkCmd(packet.getCommander()); if (checkSystem(packet.getLastSystem())){ - if (profile.isDocked()) { + if (packet.getCommander().isDocked()) { checkStarport(packet.getLastStarport()); + profile.setDocked(true); } else { + profile.setDocked(false); profile.setStation(ModelFabric.NONE_STATION); } } @@ -87,7 +89,6 @@ public class EDCE { } profile.setName(commander.getName()); profile.setBalance(commander.getCredits()); - profile.setDocked(commander.isDocked()); } private boolean checkSystem(System system){