set docked after change station
This commit is contained in:
@@ -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){
|
||||||
|
|||||||
Reference in New Issue
Block a user