if (isOnElevator(cart))
return;
boolean linked = false;
EntityMinecart link_A = lm.getLinkedCartA(cart);
if (link_A != null) {
launched = link_A.getEntityData().getInteger("Launched");
if (launched <= 0 && !isOnElevator(link_A)) {
linked = true;
adjustVelocity(cart, link_A, 'A');
adjustCartFromHistory(cart, link_A);
}
}
EntityMinecart link_B = lm.getLinkedCartB(cart);
if (link_B != null) {
launched = link_B.getEntityData().getInteger("Launched");
if (launched <= 0 && !isOnElevator(link_B)) {
linked = true;
adjustVelocity(cart, link_B, 'B');
adjustCartFromHistory(cart, link_B);
}