public void loadWeapon(Mounted mounted, Mounted mountedAmmo) { if (mountedAmmo.isDestroyed() || mountedAmmo.getShotsLeft() <= 0 || mountedAmmo.isDumping() || mountedAmmo.isBreached()) { return; }
public void loadWeapon(Mounted mounted) {
    public void loadWeapon(Mounted mounted, Mounted mountedAmmo)    {        if (mountedAmmo.isDestroyed() || mountedAmmo.getShotsLeft() <= 0 || mountedAmmo.isDumping() || mountedAmmo.isBreached()) {            return;        }        WeaponType wtype = (WeaponType)mounted.getType();        AmmoType atype = (AmmoType)mountedAmmo.getType();        if (atype.getAmmoType() == wtype.getAmmoType() && atype.getRackSize() == wtype.getRackSize()) {            mounted.setLinked(mountedAmmo);        }    }