Fixed maritime trade port-checking bug

Was checking for the port of the receiving resource instead of the giving
resource