Archived
0

set docked after change station

This commit is contained in:
Mo
2015-10-08 22:21:27 +03:00
parent f1dc3cf934
commit 32c9ac7d1f

View File

@@ -66,9 +66,11 @@ public class EDCE {
} }
checkCmd(packet.getCommander()); checkCmd(packet.getCommander());
if (checkSystem(packet.getLastSystem())){ if (checkSystem(packet.getLastSystem())){
if (profile.isDocked()) { if (packet.getCommander().isDocked()) {
checkStarport(packet.getLastStarport()); checkStarport(packet.getLastStarport());
profile.setDocked(true);
} else { } else {
profile.setDocked(false);
profile.setStation(ModelFabric.NONE_STATION); profile.setStation(ModelFabric.NONE_STATION);
} }
} }
@@ -87,7 +89,6 @@ public class EDCE {
} }
profile.setName(commander.getName()); profile.setName(commander.getName());
profile.setBalance(commander.getCredits()); profile.setBalance(commander.getCredits());
profile.setDocked(commander.isDocked());
} }
private boolean checkSystem(System system){ private boolean checkSystem(System system){